-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathGnSynTree.h
49 lines (43 loc) · 904 Bytes
/
GnSynTree.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef __GN_SYNTREE__
#define __GN_SYNTREE__
// This file was automatically generated by EbnfStudio; don't modify it!
#include <GnTools/GnTokenType.h>
#include <GnTools/GnToken.h>
#include <QList>
namespace Gn {
struct SynTree {
enum ParserRule {
R_First = TT_Max + 1,
R_ArrayAccess,
R_AssignOp,
R_Assignment,
R_BinaryOp,
R_Block,
R_Call,
R_Condition,
R_Expr,
R_ExprList,
R_Expr_nlr_,
R_File,
R_LValue,
R_List_,
R_PrimaryExpr,
R_ScopeAccess,
R_Scope_,
R_Statement,
R_StatementList,
R_UnaryExpr,
R_UnaryOp,
R_comment__,
R_signed_,
R_Last
};
SynTree(quint16 r = Tok_Invalid, const Token& = Token() );
SynTree(const Token& t ):d_tok(t){}
~SynTree() { foreach(SynTree* n, d_children) delete n; }
static const char* rToStr( quint16 r );
Gn::Token d_tok;
QList<SynTree*> d_children;
};
}
#endif // __GN_SYNTREE__