{"library":"antlr-format","type":"library","category":null,"description":"A library for formatting ANTLR4 grammar files, supporting a wide variety of formatting options. Current stable version is 2.1.5, released on a modest cadence with bug fixes and dependency updates. It is the only dedicated formatter for ANTLR4 grammars, offering fine-grained control over whitespace, alignment, and comment placement. The companion CLI package antlr-format-cli provides a command-line interface for batch processing.","language":"javascript","status":"active","version":"2.1.5","tags":["javascript","antlr","format","grammar","typescript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install antlr-format","imports":["import { GrammarFormatter } from 'antlr-format'","import { GrammarFormatter } from 'antlr-format';\nconst formatter = new GrammarFormatter(grammarText, options);","import type { FormatterOptions } from 'antlr-format'"]},{"cmd":"yarn add antlr-format","imports":[]},{"cmd":"pnpm add antlr-format","imports":[]}],"homepage":"https://github.com/mike-lischke/antlr-format","github":"https://github.com/mike-lischke/antlr-format","docs":null,"changelog":null,"pypi":null,"npm":"antlr-format","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}