diff --git a/packages/langium/src/grammar/generated/ast.ts b/packages/langium/src/grammar/generated/ast.ts index ea673c79b..3a972f2f3 100644 --- a/packages/langium/src/grammar/generated/ast.ts +++ b/packages/langium/src/grammar/generated/ast.ts @@ -7,6 +7,15 @@ import type { AstNode, Reference, ReferenceInfo, TypeMetaData } from '../../syntax-tree'; import { AbstractAstReflection } from '../../syntax-tree'; +export const LangiumGrammarTerminals = { + ID: /\^?[_a-zA-Z][\w_]*/, + STRING: /"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/, + RegexLiteral: /\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/, + WS: /\s+/, + ML_COMMENT: /\/\*[\s\S]*?\*\//, + SL_COMMENT: /\/\/[^\n\r]*/, +}; + export type AbstractRule = ParserRule | TerminalRule; export const AbstractRule = 'AbstractRule';