nitc: use is_generated in various tools and generated files
[nit.git] / contrib / pep8analysis / src / parser / parser_abs.nit
1 # Raw AST node hierarchy.
2 # This file was generated by SableCC (http://www.sablecc.org/).
3 package parser_abs is generated
4
5 import location
6
7 # Root of the AST hierarchy
8 abstract class ANode
9 var _location: nullable Location
10
11 # Location is set during AST building. Once built, location cannon be null
12 # However, manual instanciated nodes may need mode care
13 fun location: Location do return _location.as(not null)
14 end
15
16 # Ancestor of all tokens
17 abstract class Token
18 super ANode
19 end
20
21 # Ancestor of all productions
22 abstract class Prod
23 super ANode
24 fun location=(loc: Location) do _location = loc
25 end
26 class TEol
27 super Token
28 end
29 class TNumber
30 super Token
31 end
32 class TFloat
33 super Token
34 end
35 class TChar
36 super Token
37 end
38 class TString
39 super Token
40 end
41 class THex
42 super Token
43 end
44 class TColon
45 super Token
46 end
47 class TComma
48 super Token
49 end
50 class TComment
51 super Token
52 end
53 class TTkByte
54 super Token
55 end
56 class TTkWord
57 super Token
58 end
59 class TTkBlock
60 super Token
61 end
62 class TTkAscii
63 super Token
64 end
65 class TTkAddrss
66 super Token
67 end
68 class TTkEquate
69 super Token
70 end
71 class TTkBurn
72 super Token
73 end
74 class TEndBlock
75 super Token
76 end
77 class TId
78 super Token
79 end
80 class EOF
81 super Token
82 private init noinit do end
83 end
84 class AError
85 super EOF
86 private init noinit do end
87 end
88
89 class AListing super Prod end
90 class ALine super Prod end
91 class ALabelDecl super Prod end
92 class AInstruction super Prod end
93 class AOperand super Prod end
94 class AValue super Prod end
95 class ADirective super Prod end
96
97 class AListing
98 super AListing
99 readable var _n_lines: List[ALine] = new List[ALine]
100 readable var _n_label_decl: nullable ALabelDecl = null
101 readable var _n_end_block: TEndBlock
102 end
103 class AEmptyLine
104 super ALine
105 readable var _n_label_decl: nullable ALabelDecl = null
106 readable var _n_comment: nullable TComment = null
107 readable var _n_eol: TEol
108 end
109 class AInstructionLine
110 super ALine
111 readable var _n_label_decl: nullable ALabelDecl = null
112 readable var _n_instruction: AInstruction
113 readable var _n_comment: nullable TComment = null
114 readable var _n_eol: TEol
115 end
116 class ADirectiveLine
117 super ALine
118 readable var _n_label_decl: nullable ALabelDecl = null
119 readable var _n_directive: ADirective
120 readable var _n_comment: nullable TComment = null
121 readable var _n_eol: TEol
122 end
123 class ALabelDecl
124 super ALabelDecl
125 readable var _n_id: TId
126 readable var _n_colon: TColon
127 end
128 class AUnaryInstruction
129 super AInstruction
130 readable var _n_id: TId
131 end
132 class ABinaryInstruction
133 super AInstruction
134 readable var _n_id: TId
135 readable var _n_operand: AOperand
136 end
137 class AImmediateOperand
138 super AOperand
139 readable var _n_value: AValue
140 end
141 class AAnyOperand
142 super AOperand
143 readable var _n_value: AValue
144 readable var _n_comma: TComma
145 readable var _n_id: TId
146 end
147 class ALabelValue
148 super AValue
149 readable var _n_id: TId
150 end
151 class ANumberValue
152 super AValue
153 readable var _n_number: TNumber
154 end
155 class ACharValue
156 super AValue
157 readable var _n_char: TChar
158 end
159 class AStringValue
160 super AValue
161 readable var _n_string: TString
162 end
163 class AHexValue
164 super AValue
165 readable var _n_hex: THex
166 end
167 class AByteDirective
168 super ADirective
169 readable var _n_tk_byte: TTkByte
170 readable var _n_value: AValue
171 end
172 class AWordDirective
173 super ADirective
174 readable var _n_tk_word: TTkWord
175 readable var _n_value: AValue
176 end
177 class ABlockDirective
178 super ADirective
179 readable var _n_tk_block: TTkBlock
180 readable var _n_value: AValue
181 end
182 class AAsciiDirective
183 super ADirective
184 readable var _n_tk_ascii: TTkAscii
185 readable var _n_value: AValue
186 end
187 class AAddrssDirective
188 super ADirective
189 readable var _n_tk_addrss: TTkAddrss
190 readable var _n_value: AValue
191 end
192 class AEquateDirective
193 super ADirective
194 readable var _n_tk_equate: TTkEquate
195 readable var _n_value: AValue
196 end
197 class ABurnDirective
198 super ADirective
199 readable var _n_tk_burn: TTkBurn
200 readable var _n_value: AValue
201 end
202
203 class Start
204 super Prod
205 readable var _n_base: nullable AListing
206 readable var _n_eof: EOF
207 init(
208 n_base: nullable AListing,
209 n_eof: EOF)
210 do
211 _n_base = n_base
212 _n_eof = n_eof
213 end
214
215 end