# antlr4

> JavaScript runtime for ANTLR4

Latest version **4.13.2** (published 2024-08-03) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install antlr4
pnpm add antlr4
yarn add antlr4
bun add antlr4
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score; popular repo.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.13.2 |
| Published | 2024-08-03 |
| First published | 2015-04-18 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=16 |
| Dependencies | 0 |
| Unpacked size | 2.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19004 |
| Maintainers | ericvergnaud, parrt |
| Keywords | lexer, parser, antlr, antlr4, grammar |

## Links

- npm: https://www.npmjs.com/package/antlr4
- Repository: https://github.com/antlr/antlr4
- Issues: https://github.com/antlr/antlr4/issues
- npm.io page: https://npm.io/package/antlr4

## 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

- 4.13.2 (latest) — 2024-08-03
- 4.12.0-beta.0 (beta) — 2022-12-11
- 4.13.1-patch-1 — 2023-11-10
- 4.13.1 — 2023-09-04
- 4.13.0 — 2023-05-21
- 4.12.0 — 2023-02-19
- 4.12.0-beta.11 — 2023-02-16
- 4.12.0-beta.10 — 2023-02-13
- 4.12.0-beta.9 — 2023-02-13
- 4.12.0-beta.8 — 2023-02-13
- 4.12.0-beta.7 — 2023-02-13
- 4.12.0-beta.6 — 2023-02-13
- 4.12.0-beta.5 — 2023-02-10
- 4.12.0-beta.4 — 2023-01-16
- 4.12.0-beta.3 — 2023-01-01
- … 16 more at https://npm.io/package/antlr4/versions

## README

# JavaScript target for ANTLR 4

[![npm version](https://img.shields.io/npm/v/antlr4)](https://www.npmjs.com/package/antlr4)
[![Badge showing the supported LTS versions of Node.JS in the latest NPM release](https://img.shields.io/node/v-lts/antlr4)](https://www.npmjs.com/package/antlr4)
[![npm type definitions](https://img.shields.io/npm/types/antlr4)](https://www.npmjs.com/package/antlr4)

JavaScript runtime libraries for ANTLR 4

This runtime is available through npm. The package name is 'antlr4'.

This runtime has been tested in Node.js, Safari, Firefox, Chrome and IE.

See www.antlr.org for more information on ANTLR

See [Javascript Target](https://github.com/antlr/antlr4/blob/master/doc/javascript-target.md)
for more information on using ANTLR in JavaScript

This runtime requires node version >= 16.

ANTLR 4 runtime is available in 10 target languages, and favors consistency of versioning across targets.
As such it cannot follow recommended NPM semantic versioning.
If you install a specific version of antlr4, we strongly recommend you remove the corresponding ^ in your package.json.

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