"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const Assembly_1 = __importDefault(require("../ast/Assembly"));
function parsing(root, options) {
    let modules = new Map();
    for (let name in root) {
        let source = root[name];
        let module = options.parser.parse(source, name);
        modules.set(name, module);
    }
    return new Assembly_1.default({ modules });
}
exports.default = parsing;
