-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain.js
22 lines (22 loc) · 1.01 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Generated automatically by nearley
// http://github.com/Hardmath123/nearley
(function () {
function id(x) {return x[0]; }
var grammar = {
Lexer: undefined,
ParserRules: [
{"name": "core$string$1", "symbols": [{"literal":"c"}, {"literal":"o"}, {"literal":"r"}, {"literal":"e"}], "postprocess": function joiner(d) {return d.join('');}},
{"name": "core", "symbols": ["core$string$1"]},
{"name": "doA$string$1", "symbols": [{"literal":"a"}, {"literal":" "}], "postprocess": function joiner(d) {return d.join('');}},
{"name": "doA", "symbols": ["doA$string$1", "core"]},
{"name": "MAIN$string$1", "symbols": [{"literal":"M"}, {"literal":"a"}, {"literal":"i"}, {"literal":"n"}, {"literal":":"}, {"literal":" "}], "postprocess": function joiner(d) {return d.join('');}},
{"name": "MAIN", "symbols": ["MAIN$string$1", "doA"]}
]
, ParserStart: "MAIN"
}
if (typeof module !== 'undefined'&& typeof module.exports !== 'undefined') {
module.exports = grammar;
} else {
window.grammar = grammar;
}
})();