import { LangiumParser } from "./langium-parser.js";
import { createParser } from "./parser-builder-base.js";
function createLangiumParser(e) {
	let t = prepareLangiumParser(e);
	return t.finalize(), t;
}
function prepareLangiumParser(n) {
	let r = n.Grammar, i = n.parser.Lexer;
	return createParser(r, new LangiumParser(n), i.definition);
}
export { createLangiumParser, prepareLangiumParser };
