chevrotain-allstar
LL(*) lookahead strategy for the Chevrotain parser library
Last updated 3 years ago by msujew .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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.3.1                                ...           latest (3 years ago)
  • 0.1.6-next.1                                ...           next (3 years ago)

14 Versions

  • 0.3.1                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.2                                ...           3 years ago
  • 0.1.7                                ...           3 years ago
  • 0.1.6                                ...           3 years ago
  • 0.1.6-next.1                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.1.5                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.4                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (1)
Dev Dependencies (5)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |