2015-05-28 23:19:46 +00:00
|
|
|
#include <peglib.h>
|
|
|
|
|
2015-06-02 18:17:08 +00:00
|
|
|
enum AstTag
|
2015-05-28 23:19:46 +00:00
|
|
|
{
|
2015-06-04 23:06:37 +00:00
|
|
|
Default = peglib::AstDefaultTag,
|
2015-07-23 01:14:55 +00:00
|
|
|
|
|
|
|
Statements,
|
|
|
|
While,
|
|
|
|
If,
|
|
|
|
Call,
|
|
|
|
Assignment,
|
|
|
|
|
|
|
|
Arguments,
|
|
|
|
Index,
|
|
|
|
Dot,
|
|
|
|
|
|
|
|
LogicalOr,
|
|
|
|
LogicalAnd,
|
|
|
|
Condition,
|
|
|
|
UnaryPlus,
|
|
|
|
UnaryMinus,
|
|
|
|
UnaryNot,
|
|
|
|
BinExpresion,
|
|
|
|
|
|
|
|
Identifier,
|
|
|
|
|
|
|
|
Object,
|
|
|
|
Array,
|
|
|
|
Function,
|
|
|
|
|
|
|
|
InterpolatedString,
|
|
|
|
|
|
|
|
Number,
|
|
|
|
Boolean,
|
2015-05-28 23:19:46 +00:00
|
|
|
};
|
|
|
|
|
2015-05-29 01:36:29 +00:00
|
|
|
peglib::peg& get_parser();
|
2015-05-28 23:19:46 +00:00
|
|
|
|
|
|
|
// vim: et ts=4 sw=4 cin cino={1s ff=unix
|