You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
437 B
39 lines
437 B
#include <peglib.h>
|
|
|
|
enum AstTag
|
|
{
|
|
Default = peglib::AstDefaultTag,
|
|
|
|
Statements,
|
|
While,
|
|
If,
|
|
Call,
|
|
Assignment,
|
|
|
|
Arguments,
|
|
Index,
|
|
Dot,
|
|
|
|
LogicalOr,
|
|
LogicalAnd,
|
|
Condition,
|
|
UnaryPlus,
|
|
UnaryMinus,
|
|
UnaryNot,
|
|
BinExpresion,
|
|
|
|
Identifier,
|
|
|
|
Object,
|
|
Array,
|
|
Function,
|
|
|
|
InterpolatedString,
|
|
|
|
Number,
|
|
Boolean,
|
|
};
|
|
|
|
peglib::peg& get_parser();
|
|
|
|
// vim: et ts=4 sw=4 cin cino={1s ff=unix
|
|
|