"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const langiumParser = require("./lib-parser-langium-parser.cjs");
const parserBuilderBase = require("./lib-parser-parser-builder-base.cjs");
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.LangiumParser(services);
  return parserBuilderBase.createParser(grammar, parser, lexer.definition);
}
exports.createLangiumParser = createLangiumParser;
exports.prepareLangiumParser = prepareLangiumParser;
//# sourceMappingURL=lib-parser-langium-parser-builder.cjs.map
