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
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
21 # Ancestor of all productions
24 fun location
=(loc
: Location) do _location
= loc
82 private init noinit
do end
86 private init noinit
do end
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
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
105 readable var _n_label_decl
: nullable ALabelDecl = null
106 readable var _n_comment
: nullable TComment = null
107 readable var _n_eol
: TEol
109 class AInstructionLine
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
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
125 readable var _n_id
: TId
126 readable var _n_colon
: TColon
128 class AUnaryInstruction
130 readable var _n_id
: TId
132 class ABinaryInstruction
134 readable var _n_id
: TId
135 readable var _n_operand
: AOperand
137 class AImmediateOperand
139 readable var _n_value
: AValue
143 readable var _n_value
: AValue
144 readable var _n_comma
: TComma
145 readable var _n_id
: TId
149 readable var _n_id
: TId
153 readable var _n_number
: TNumber
157 readable var _n_char
: TChar
161 readable var _n_string
: TString
165 readable var _n_hex
: THex
169 readable var _n_tk_byte
: TTkByte
170 readable var _n_value
: AValue
174 readable var _n_tk_word
: TTkWord
175 readable var _n_value
: AValue
177 class ABlockDirective
179 readable var _n_tk_block
: TTkBlock
180 readable var _n_value
: AValue
182 class AAsciiDirective
184 readable var _n_tk_ascii
: TTkAscii
185 readable var _n_value
: AValue
187 class AAddrssDirective
189 readable var _n_tk_addrss
: TTkAddrss
190 readable var _n_value
: AValue
192 class AEquateDirective
194 readable var _n_tk_equate
: TTkEquate
195 readable var _n_value
: AValue
199 readable var _n_tk_burn
: TTkBurn
200 readable var _n_value
: AValue
205 readable var _n_base
: nullable AListing
206 readable var _n_eof
: EOF
208 n_base
: nullable AListing,