Package Exports
- chevrotain-allstar
- chevrotain-allstar/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chevrotain-allstar) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Chevrotain Allstar
This is a lookahead plugin package for the Chevrotain parser library. It implements the ALL(*) lookahead algorithm introduced for ANTLR4. The algorithm features unbounded lookahead, compared to the normal LL(k) behavior of Chevrotain.
Usage
When creating your parser, pass an instance of the LLStarLookaheadStrategy
to the lookaheadStrategy
property of the base parser constructor options.
import { LLStarLookaheadStrategy } from "chevrotain-allstar";
class Parser extends EmbeddedActionsParser {
constructor() {
super(tokens, {
lookaheadStrategy: new LLStarLookaheadStrategy()
});
this.performSelfAnalysis()
}
}