
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@apexdevtools/vf-parser
Advanced tools
Parser for Salesforce Visualforce. This is based on an ANTLR4 grammar, see antlr/ApexParser.g4.
There are two builds of the parser available, a NPM module for use with Node and a Maven package for use on JVMs.
These builds just contain the Parser & Lexer and provides no further support for analysing the generated parse trees beyond what is provided by ANTLR4.
To parse a page file (NPM version):
let lexer = new VFLexer(CharStreams.fromString("<apex:page/>"));
let tokens = new CommonTokenStream(lexer);
let parser = new VFParser(tokens);
let context = parser.vfUnit();
The 'context' is a VfUnitContext object which is the root of the parsed representation of the page. You can access the parse tree via functions on it.
Maven
<dependency>
<groupId>io.github.apex-dev-tools</groupId>
<artifactId>vf-parser</artifactId>
<version>1.1.0</version>
</dependency>
NPM
"@apexdevtools/vf-parser": "^1.1.0"
To build both distributions:
npm run build
1.0.0 - Initial version, Move to @apexdevtools/vf-parser
All the source code included uses a 3-clause BSD license.
FAQs
Salesforce Visualforce parser
The npm package @apexdevtools/vf-parser receives a total of 2 weekly downloads. As such, @apexdevtools/vf-parser popularity was classified as not popular.
We found that @apexdevtools/vf-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.