equal
deleted
inserted
replaced
137 s4o.print(")"); |
137 s4o.print(")"); |
138 } |
138 } |
139 else { |
139 else { |
140 generate_cc_base_c::visit(symbol); |
140 generate_cc_base_c::visit(symbol); |
141 } |
141 } |
|
142 return NULL; |
|
143 } |
|
144 |
|
145 /********************************************/ |
|
146 /* B.1.4.1 Directly Represented Variables */ |
|
147 /********************************************/ |
|
148 // direct_variable: direct_variable_token {$$ = new direct_variable_c($1);}; |
|
149 void *visit(direct_variable_c *symbol) { |
|
150 TRACE("direct_variable_c"); |
|
151 /* Do not use print_token() as it will change everything into uppercase */ |
|
152 if (strlen(symbol->value) == 0) ERROR; |
|
153 s4o.print("*("); |
|
154 this->print_variable_prefix(); |
|
155 s4o.printlocation(symbol->value + 1); |
|
156 s4o.print(")"); |
142 return NULL; |
157 return NULL; |
143 } |
158 } |
144 |
159 |
145 /***************************************/ |
160 /***************************************/ |
146 /* B.3 - Language ST (Structured Text) */ |
161 /* B.3 - Language ST (Structured Text) */ |