import { LangiumParser } from "./lib-parser-langium-parser.js";
import { createParser } from "./lib-parser-parser-builder-base.js";
function createLangiumParser(services) {
  const parser = prepareLangiumParser(services);
  parser.finalize();
  return parser;
}
function prepareLangiumParser(services) {
  const grammar = services.Grammar;
  const lexer = services.parser.Lexer;
  const parser = new LangiumParser(services);
  return createParser(grammar, parser, lexer.definition);
}
export {
  createLangiumParser,
  prepareLangiumParser
};
//# sourceMappingURL=lib-parser-langium-parser-builder.js.map
