equal
deleted
inserted
replaced
450 return NULL; |
450 return NULL; |
451 } |
451 } |
452 |
452 |
453 |
453 |
454 private: |
454 private: |
|
455 |
|
456 /********************************************/ |
|
457 /* B.1.4.1 Directly Represented Variables */ |
|
458 /********************************************/ |
|
459 // direct_variable: direct_variable_token {$$ = new direct_variable_c($1);}; |
|
460 void *visit(direct_variable_c *symbol) { |
|
461 TRACE("direct_variable_c"); |
|
462 /* Do not use print_token() as it will change everything into uppercase */ |
|
463 if (strlen(symbol->value) == 0) ERROR; |
|
464 s4o.print("*("); |
|
465 this->print_variable_prefix(); |
|
466 s4o.printlocation(symbol->value + 1); |
|
467 s4o.print(")"); |
|
468 return NULL; |
|
469 } |
|
470 |
455 /****************************************/ |
471 /****************************************/ |
456 /* B.2 - Language IL (Instruction List) */ |
472 /* B.2 - Language IL (Instruction List) */ |
457 /****************************************/ |
473 /****************************************/ |
458 |
474 |
459 /***********************************/ |
475 /***********************************/ |