File tree Expand file tree Collapse file tree 1 file changed +114
-0
lines changed
include/LuaParser/LuaAstNode Expand file tree Collapse file tree 1 file changed +114
-0
lines changed Original file line number Diff line number Diff line change 1+ #pragma once
2+
3+ enum class LuaAstNodeType
4+ {
5+ LuaAstNode = -1 ,
6+
7+ Chunk = 0 ,
8+
9+ Block ,
10+
11+ Identify ,
12+
13+ NameIdentify ,
14+
15+ KeyWord ,
16+
17+ EmptyStatement ,
18+
19+ LocalStatement ,
20+
21+ LocalFunctionStatement ,
22+
23+ IfStatement ,
24+
25+ WhileStatement ,
26+
27+ DoStatement ,
28+
29+ ForStatement ,
30+
31+ RepeatStatement ,
32+
33+ FunctionStatement ,
34+
35+ LabelStatement ,
36+
37+ BreakStatement ,
38+
39+ ReturnStatement ,
40+
41+ GotoStatement ,
42+
43+ ExpressionStatement ,
44+
45+ AssignStatement ,
46+
47+ Expression ,
48+
49+ PrimaryExpression ,
50+
51+ LiteralExpression ,
52+
53+ StringLiteralExpression ,
54+
55+ ClosureExpression ,
56+
57+ UnaryExpression ,
58+
59+ BinaryExpression ,
60+
61+ TableExpression ,
62+
63+ CallExpression ,
64+
65+ IndexExpression ,
66+
67+ NameExpression ,
68+
69+ UnaryOperator ,
70+
71+ BinaryOperator ,
72+
73+ IndexOperator ,
74+
75+ GeneralOperator ,
76+
77+ TableField ,
78+
79+ TableFieldSep ,
80+
81+ FunctionBody ,
82+
83+ ParamList ,
84+
85+ NameDefList ,
86+
87+ Attribute ,
88+
89+ Param ,
90+
91+ CallArgList ,
92+
93+ ExpressionList ,
94+
95+ ForNumber ,
96+
97+ ForList ,
98+
99+ ForBody ,
100+
101+ Error ,
102+
103+ Comment ,
104+
105+ ShortComment ,
106+
107+ LongComment ,
108+
109+ ShebangComment
110+ };
111+
112+
113+ #define LUA_AST (ASTClass )\
114+ inline static constexpr LuaAstNodeType ASTIndex = LuaAstNodeType::ASTClass
You can’t perform that action at this time.
0 commit comments