rune-langium / core/src / createRuneDslParser
Function: createRuneDslParser()
ts
function createRuneDslParser(services): RuneDslParser;Defined in: packages/core/src/services/rune-dsl-parser.ts:74
Factory function that creates and fully initializes a RuneDslParser.
Parameters
| Parameter | Type | Description |
|---|---|---|
services | LangiumCoreServices | Langium core services providing the grammar and lexer. |
Returns
An initialized RuneDslParser ready to parse Rune DSL source text.
Remarks
This is a drop-in replacement for createLangiumParser. It constructs the parser, registers all grammar rules, and calls finalize() so the Chevrotain parser is ready to use. Called automatically by RuneDslModule.