chevrotain-allstar

LL(*) lookahead strategy for the Chevrotain parser library

MIT 18 个版本
安装
npm install chevrotain-allstar
yarn add chevrotain-allstar
pnpm add chevrotain-allstar
bun add chevrotain-allstar
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()
    }
}
版本列表
0.4.3 2026-04-30
0.4.2 2026-04-30
0.4.1 2026-04-02
0.4.0 2026-04-02
0.3.1 2023-08-31
0.3.0 2023-07-17
0.2.2 2023-03-28
0.2.1 2023-03-28
0.2.0 2023-03-24
0.1.7 2023-03-28
0.1.6 2023-03-28
0.1.6-next.1 2023-03-28
0.1.5 2023-03-24
0.1.4 2023-01-02
0.1.3 2022-12-07
0.1.2 2022-11-29
0.1.1 2022-11-04
0.1.0 2022-11-04