1 # Raw AST node hierarchy.
2 # This file was generated by SableCC (http://www.sablecc.org/).
7 # Root of the AST hierarchy
9 var _location
: nullable Location = null
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)
16 # Ancestor of all tokens
20 fun text
: String is abstract
23 # Ancestor of all productions
26 fun location
=(loc
: Location) do _location
= loc
84 #private init noinit do end
88 #private init noinit do end
93 var _n_label_decl
: nullable ALabelDecl = null
94 fun n_label_decl
: nullable ALabelDecl do return _n_label_decl
95 var _n_comment
: nullable TComment = null
96 fun n_comment
: nullable TComment do return _n_comment
101 fun n_id
: TId do return _n_id
102 fun n_id
=(n_id
: TId) do _n_id
= n_id
108 fun n_value
: AValue do return _n_value
111 class AValue super Prod end
112 class ADirective super Prod end
116 var _n_lines
: List[ALine] = new List[ALine]
117 fun n_lines
: List[ALine] do return _n_lines
118 var _n_label_decl
: nullable ALabelDecl = null
119 fun n_label_decl
: nullable ALabelDecl do return _n_label_decl
120 var _n_end_block
: TEndBlock
121 fun n_end_block
: TEndBlock do return _n_end_block
127 fun n_eol
: TEol do return _n_eol
130 abstract class ANonEmptyLine
133 class AInstructionLine
135 var _n_instruction
: AInstruction
136 fun n_instruction
: AInstruction do return _n_instruction
138 fun n_eol
: TEol do return _n_eol
143 var _n_directive
: ADirective
144 fun n_directive
: ADirective do return _n_directive
146 fun n_eol
: TEol do return _n_eol
152 fun n_id
: TId do return _n_id
154 fun n_colon
: TColon do return _n_colon
157 class AUnaryInstruction
160 class ABinaryInstruction
162 var _n_operand
: AOperand
163 fun n_operand
: AOperand do return _n_operand
166 class AImmediateOperand
172 fun n_comma
: TComma do return _n_comma
174 fun n_id
: TId do return _n_id
180 fun n_id
: TId do return _n_id
185 var _n_number
: TNumber
186 fun n_number
: TNumber do return _n_number
192 fun n_char
: TChar do return _n_char
197 var _n_string
: TString
198 fun n_string
: TString do return _n_string
204 fun n_hex
: THex do return _n_hex
209 var _n_tk_byte
: TTkByte
210 fun n_tk_byte
: TTkByte do return _n_tk_byte
212 fun n_value
: AValue do return _n_value
217 var _n_tk_word
: TTkWord
218 fun n_tk_word
: TTkWord do return _n_tk_word
220 fun n_value
: AValue do return _n_value
223 class ABlockDirective
225 var _n_tk_block
: TTkBlock
226 fun n_tk_block
: TTkBlock do return _n_tk_block
228 fun n_value
: AValue do return _n_value
231 class AAsciiDirective
233 var _n_tk_ascii
: TTkAscii
234 fun n_tk_ascii
: TTkAscii do return _n_tk_ascii
236 fun n_value
: AValue do return _n_value
239 class AAddrssDirective
241 var _n_tk_addrss
: TTkAddrss
242 fun n_tk_addrss
: TTkAddrss do return _n_tk_addrss
244 fun n_value
: AValue do return _n_value
247 class AEquateDirective
249 var _n_tk_equate
: TTkEquate
250 fun n_tk_equate
: TTkEquate do return _n_tk_equate
252 fun n_value
: AValue do return _n_value
257 var _n_tk_burn
: TTkBurn
258 fun n_tk_burn
: TTkBurn do return _n_tk_burn
260 fun n_value
: AValue do return _n_value
266 var _n_base
: nullable AListing
267 fun n_base
: nullable AListing do return _n_base
269 fun n_eof
: EOF do return _n_eof
270 init(n_base
: nullable AListing, n_eof
: EOF)