|
|
|
@ -77,26 +77,26 @@ peg& get_parser() |
|
|
|
|
/*
|
|
|
|
|
Definition, Tag Optimize |
|
|
|
|
---------------------- ------------------ ---------- */ |
|
|
|
|
{ "STATEMENTS", Statements }, |
|
|
|
|
{ "WHILE", While }, |
|
|
|
|
{ "ASSIGNMENT", Assignment }, |
|
|
|
|
{ "IF", If }, |
|
|
|
|
{ "FUNCTION", Function }, |
|
|
|
|
{ "PARAMETERS", Default }, |
|
|
|
|
{ "FUNCTION_CALL", FunctionCall }, |
|
|
|
|
{ "ARGUMENTS", Default }, |
|
|
|
|
{ "PRIMARY", LogicalOr, true }, |
|
|
|
|
{ "LOGICAL_OR", LogicalAnd, true }, |
|
|
|
|
{ "LOGICAL_AND", Condition, true }, |
|
|
|
|
{ "CONDITION", BinExpresion, true }, |
|
|
|
|
{ "TERM", UnaryPlus, true }, |
|
|
|
|
{ "UNARY_PLUS", UnaryMinus, true }, |
|
|
|
|
{ "UNARY_MINUS", UnaryNot, true }, |
|
|
|
|
{ "UNARY_NOT", BinExpresion, true }, |
|
|
|
|
{ "NUMBER", Number }, |
|
|
|
|
{ "BOOLEAN", Boolean }, |
|
|
|
|
{ "IDENTIFIER", Identifier }, |
|
|
|
|
{ "INTERPOLATED_STRING", InterpolatedString }, |
|
|
|
|
{ "STATEMENTS", Statements, false }, |
|
|
|
|
{ "WHILE", While, false }, |
|
|
|
|
{ "ASSIGNMENT", Assignment, false }, |
|
|
|
|
{ "IF", If, false }, |
|
|
|
|
{ "FUNCTION", Function, false }, |
|
|
|
|
{ "PARAMETERS", Default, false }, |
|
|
|
|
{ "FUNCTION_CALL", FunctionCall, false }, |
|
|
|
|
{ "ARGUMENTS", Default, false }, |
|
|
|
|
{ "PRIMARY", LogicalOr, true }, |
|
|
|
|
{ "LOGICAL_OR", LogicalAnd, true }, |
|
|
|
|
{ "LOGICAL_AND", Condition, true }, |
|
|
|
|
{ "CONDITION", BinExpresion, true }, |
|
|
|
|
{ "TERM", UnaryPlus, true }, |
|
|
|
|
{ "UNARY_PLUS", UnaryMinus, true }, |
|
|
|
|
{ "UNARY_MINUS", UnaryNot, true }, |
|
|
|
|
{ "UNARY_NOT", BinExpresion, true }, |
|
|
|
|
{ "NUMBER", Number, false }, |
|
|
|
|
{ "BOOLEAN", Boolean, false }, |
|
|
|
|
{ "IDENTIFIER", Identifier, false }, |
|
|
|
|
{ "INTERPOLATED_STRING", InterpolatedString, false }, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|