-
Notifications
You must be signed in to change notification settings - Fork 15
/
LjasSynTree.h
90 lines (84 loc) · 1.39 KB
/
LjasSynTree.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#ifndef __LJAS_SYNTREE__
#define __LJAS_SYNTREE__
// This file was automatically generated by EbnfStudio; don't modify it!
#include <LjTools/LjasTokenType.h>
#include <LjTools/LjasToken.h>
#include <QList>
namespace Ljas {
struct SynTree {
enum ParserRule {
R_First = TT_Max + 1,
R_ADD_,
R_CALLT_,
R_CALL_,
R_CAT_,
R_DIV_,
R_FNEW_,
R_FORI_,
R_FORL_,
R_GGET_,
R_GSET_,
R_ISEQ_,
R_ISFC_,
R_ISF_,
R_ISGE_,
R_ISGT_,
R_ISLE_,
R_ISLT_,
R_ISNE_,
R_ISTC_,
R_IST_,
R_JMP_,
R_KNIL_,
R_KSET_,
R_LEN_,
R_LOOP_,
R_LjAsm,
R_MOD_,
R_MOV_,
R_MUL_,
R_NOT_,
R_POW_,
R_RET_,
R_SUB_,
R_TDUP_,
R_TGET_,
R_TNEW_,
R_TSET_,
R_UCLO_,
R_UGET_,
R_UNM_,
R_USET_,
R_cname,
R_comment_,
R_const_decls,
R_const_val,
R_desig,
R_fname,
R_formal_params,
R_function_body,
R_function_decl,
R_function_header,
R_integer,
R_label,
R_labelDef,
R_nameWithPreset,
R_number,
R_primitive,
R_record,
R_statement,
R_table_literal,
R_var_decl,
R_var_decls,
R_vname,
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 );
Ljas::Token d_tok;
QList<SynTree*> d_children;
};
}
#endif // __LJAS_SYNTREE__