12 #define CONNECT(cls, r) BindAST<AST::cls> r = MysoreScriptGrammar::get().r 14 CONNECT(Multiply, mul_op);
15 CONNECT(Divide, div_op);
17 CONNECT(Subtract, sub_op);
18 CONNECT(CmpNe, ne_cmp);
19 CONNECT(CmpEq, eq_cmp);
20 CONNECT(CmpLt, lt_cmp);
21 CONNECT(CmpGt, gt_cmp);
22 CONNECT(CmpLE, le_cmp);
23 CONNECT(CmpGE, ge_cmp);
24 CONNECT(StringLiteral, string_body);
25 CONNECT(Identifier, identifier);
26 CONNECT(ArgList, callArgList);
27 CONNECT(ParamList, argList);
28 CONNECT(ClosureDecl, closure);
29 CONNECT(VarRef, variable);
30 CONNECT(Assignment, assignment);
34 CONNECT(IfStatement, ifStatement);
35 CONNECT(WhileLoop, whileLoop);
36 CONNECT(Statements, statements);
37 CONNECT(ClassDecl, cls);
38 CONNECT(NewExpr, newExpr);
Class representing a parser for the MysoreScript language.
static const MysoreScriptGrammar & get()
Returns a singleton instance of this grammar.
Grammar for the MysoreScript language.
const MysoreScriptGrammar & g
The grammar that this parser uses.