{"library":"antlr4ng","type":"library","category":null,"description":"antlr4ng is an alternative, TypeScript-first runtime for ANTLR4 grammars, specifically designed to be used with the `antlr-ng` parser generation tool. Currently stable at version `3.0.16`, it receives frequent point releases addressing bugs and introducing minor enhancements. Unlike the original ANTLR4 JavaScript runtime, `antlr4ng` operates identically across Node.js and browser environments and is built with strict TypeScript nullability checks. It requires an ES2022 (ES6) compatible runtime for features like static initialization blocks and private class fields. While implementing nearly all features of the Java ANTLR4 runtime, it notably omits the `UnbufferedCharStream` class. Developers migrating from other ANTLR4 JavaScript runtimes will need to adjust code for stricter null handling and renamed internal members.","language":"javascript","status":"active","version":"3.0.16","tags":["javascript","lexer","parser","antlr","antlr4","grammar","TypeScript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install antlr4ng","imports":["import { CharStream } from \"antlr4ng\";","import { CommonTokenStream } from \"antlr4ng\";","import { ExpressionLexer } from \"./generated/ExpressionLexer.js\";","import { Parser } from \"antlr4ng\";"]},{"cmd":"yarn add antlr4ng","imports":[]},{"cmd":"pnpm add antlr4ng","imports":[]}],"homepage":null,"github":"https://github.com/mike-lischke/antlr4ng","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/antlr4ng","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/antlr4ng/compatibility"}}