xcparse
Version:
pbxproj parser
17 lines • 765 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.lexer = exports.tokens = exports.tokenVocabulary = void 0;
const chevrotain_1 = require("./chevrotain");
const identifiers_1 = __importDefault(require("./identifiers"));
// the vocabulary will be exported and used in the Parser definition.
exports.tokenVocabulary = {};
// The order of tokens is important
exports.tokens = [...identifiers_1.default];
exports.lexer = new chevrotain_1.Lexer(exports.tokens);
exports.tokens.forEach((tokenType) => {
exports.tokenVocabulary[tokenType.name] = tokenType;
});
//# sourceMappingURL=lexer.js.map