equal
deleted
inserted
replaced
508 ^ compilerStack top |
508 ^ compilerStack top |
509 ! ! |
509 ! ! |
510 |
510 |
511 !PPCCompiler methodsFor:'code generation - variables'! |
511 !PPCCompiler methodsFor:'code generation - variables'! |
512 |
512 |
513 allocateReturnVariable |
513 allocateReturnVariable |
514 "Return a new variable to store parsed value" |
514 ^ self allocateReturnVariableNamed: 'retval' |
515 |
515 |
516 ^ currentMethod allocateReturnVariable |
516 "Created: / 23-04-2015 / 18:03:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
517 |
517 "Modified: / 15-06-2015 / 17:52:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
518 "Created: / 23-04-2015 / 17:58:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
518 ! |
519 "Modified (comment): / 23-04-2015 / 21:12:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
519 |
|
520 allocateReturnVariableNamed: name |
|
521 "Allocate (or return previously allocated one) temporary variable used for |
|
522 storing a parser's return value (the parsed object)" |
|
523 ^ currentMethod allocateReturnVariableNamed: name |
|
524 |
|
525 "Created: / 15-06-2015 / 18:04:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
520 ! |
526 ! |
521 |
527 |
522 allocateTemporaryVariableNamed: preferredName |
528 allocateTemporaryVariableNamed: preferredName |
523 "Allocate a new variable with (preferably) given name. |
529 "Allocate a new variable with (preferably) given name. |
524 Returns a real variable name that should be used." |
530 Returns a real variable name that should be used." |