0.3.1 • Published 8 months ago

chevrotain-allstar v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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.3.0

10 months ago

0.3.1

8 months ago

0.1.6-next.1

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.7

1 year ago

0.2.2

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago