-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMilSynTree.h
More file actions
78 lines (72 loc) · 1.43 KB
/
MilSynTree.h
File metadata and controls
78 lines (72 loc) · 1.43 KB
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
#ifndef __MIL_SYNTREE__
#define __MIL_SYNTREE__
// This file was automatically generated by EbnfStudio; don't modify it!
#include <Micron/MilTokenType.h>
#include <Micron/MilToken.h>
#include <QList>
namespace Mil {
struct SynTree {
enum ParserRule {
R_First = TT_Max + 1,
R_ArrayType,
R_Binding,
R_CondOp,
R_ConstDeclaration,
R_ConstExpression,
R_ConstExpression2,
R_Expression,
R_FPSection,
R_FieldList,
R_FormalParameters,
R_IdentList,
R_IfThenElse,
R_ImportList,
R_ImporterList,
R_InterfaceType,
R_Line,
R_LocalDeclaration,
R_Loop,
R_MemberList,
R_MetaActuals,
R_MetaParams,
R_Mil,
R_NamedType,
R_ObjectType,
R_PointerType,
R_ProcedureDeclaration,
R_ProcedureType,
R_RepeatUntil,
R_ReturnType,
R_StatementSequence,
R_StructUnionType,
R_Switch,
R_TypeDeclaration,
R_VariableDeclaration,
R_WhileDo,
R_comment_,
R_component,
R_component_list,
R_constructor,
R_hexstringdelim_,
R_identdef,
R_import,
R_instantiation,
R_integer,
R_length,
R_module,
R_number,
R_qortrident,
R_qualident,
R_trident,
R_type,
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 );
Mil::Token d_tok;
QList<SynTree*> d_children;
};
}
#endif // __MIL_SYNTREE__