{"library":"antlr4","type":"library","category":null,"description":"The `antlr4` package provides the JavaScript runtime libraries for ANTLR 4, a powerful parser generator tool. It enables parsing various languages and data formats in Node.js (requiring Node.js >= 16) and major browsers like Safari, Firefox, and Chrome. The current stable version is 4.13.2, with minor updates released periodically. A key differentiator is its role as the official runtime for grammars defined using the ANTLR tool, supporting 10 target languages. Due to this multi-target consistency, ANTLR's versioning does not strictly follow npm semantic versioning, meaning minor version bumps can introduce breaking changes across targets; users are strongly advised to pin exact versions. The library ships with comprehensive TypeScript type definitions, making it suitable for modern TypeScript development.","language":"javascript","status":"active","version":"4.13.2","tags":["javascript","lexer","parser","antlr","antlr4","grammar","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install antlr4","imports":["import { CharStreams } from 'antlr4';","import { CommonTokenStream } from 'antlr4';","import { ParserRuleContext } from 'antlr4';","import { error } from 'antlr4';\nconst { ErrorListener } = error;"]},{"cmd":"yarn add antlr4","imports":[]},{"cmd":"pnpm add antlr4","imports":[]}],"homepage":"https://www.antlr.org","github":"https://github.com/antlr/antlr4","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/antlr4","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/antlr4/compatibility"}}