chevrotain-allstar
LL(*) lookahead strategy for the Chevrotain parser library
Last updated 4 months ago by msujew .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install chevrotain-allstar 
SYNC missed versions from official npm registry.

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()
    }
}

Current Tags

  • 0.5.0                                ...           latest (4 months ago)
  • 0.1.6-next.1                                ...           next (4 years ago)

20 Versions

  • 0.5.0                                ...           4 months ago
  • 0.4.4                                ...           4 months ago
  • 0.4.3                                ...           7 months ago
  • 0.4.2                                ...           7 months ago
  • 0.4.1                                ...           8 months ago
  • 0.4.0                                ...           8 months ago
  • 0.3.1                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.2                                ...           4 years ago
  • 0.1.7                                ...           4 years ago
  • 0.1.6                                ...           4 years ago
  • 0.1.6-next.1                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.1.5                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Total 64
Today 0
This Week 4
This Month 43
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (4)

© 2010 - cnpmjs.org x YWFE | Home | YWFE