univac
Version:
Generate AST of lots of common programming languages using antlr4. JavaScript API and CLI tool.
13 lines • 699 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var parserImpl_1 = require("../parserImpl");
function getSmalltalkImpl() {
return {
Lexer: require('../grammar/smalltalk/SmalltalkLexer').SmalltalkLexer,
Parser: require('../grammar/smalltalk/SmalltalkParser').SmalltalkParser,
mainRule: 'script',
redundantTypes: function (node, parent) { return parserImpl_1.preventRedundantTypeNames(node, parent, function (node) { return ['ws', 'parsetimeLiteral', 'binarySend', 'unarySend', 'cascade', 'expressions', 'expression'].includes(node.type); }); }
};
}
exports.getSmalltalkImpl = getSmalltalkImpl;
//# sourceMappingURL=smalltalk.js.map