# chevrotain-allstar

> LL(*) lookahead strategy for the Chevrotain parser library

Latest version **0.5.0** (published 2026-08-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install chevrotain-allstar
pnpm add chevrotain-allstar
yarn add chevrotain-allstar
bun add chevrotain-allstar
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2026-08-05 |
| First published | 2022-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 156.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | TypeFox |
| Maintainers | msujew |
| Keywords | parser, lookahead, chevrotain, langium |

## Links

- npm: https://www.npmjs.com/package/chevrotain-allstar
- Repository: https://github.com/langium/chevrotain-allstar
- Homepage: https://github.com/langium/chevrotain-allstar#readme
- Issues: https://github.com/langium/chevrotain-allstar/issues
- npm.io page: https://npm.io/package/chevrotain-allstar

## Dependencies (1)

- [lodash-es](https://npm.io/package/lodash-es.md) ^4.18.1

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.5.0 (latest) — 2026-08-05
- 0.1.6-next.1 (next) — 2023-03-28
- 0.4.4 — 2026-07-20
- 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.1.7 — 2023-03-28
- 0.1.6 — 2023-03-28
- 0.2.1 — 2023-03-28
- 0.1.5 — 2023-03-24
- 0.2.0 — 2023-03-24
- … 5 more at https://npm.io/package/chevrotain-allstar/versions

## README

# Chevrotain Allstar

This is a lookahead plugin package for the [Chevrotain parser library](https://chevrotain.io/).
It implements the [ALL(*) lookahead algorithm](https://www.antlr.org/papers/allstar-techreport.pdf) 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.

```ts
import { LLStarLookaheadStrategy } from "chevrotain-allstar";

class Parser extends EmbeddedActionsParser {
    constructor() {
        super(tokens, {
            lookaheadStrategy: new LLStarLookaheadStrategy()
        });
        this.performSelfAnalysis()
    }
}
```

---
_Source: https://npm.io/package/chevrotain-allstar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
