LL(*) lookahead strategy for the Chevrotain parser library
npm install chevrotain-allstarLLStarLookaheadStrategy to the lookaheadStrategy property of the base parser constructor options.
ts
import { LLStarLookaheadStrategy } from "chevrotain-allstar";
class Parser extends EmbeddedActionsParser {
constructor() {
super(tokens, {
lookaheadStrategy: new LLStarLookaheadStrategy()
});
this.performSelfAnalysis()
}
}
``