Mantis - Squeak
Viewing Issue Advanced Details
3878 SmaCC major N/A 06-25-06 00:15 07-12-06 20:22
mathk  
 
normal  
closed 3.9  
fixed  
none    
none 3.9  
0003878: SmaCCToken don't initialize start atribut correctly
When you inspect a RBMethodNode build like this:

-----------------------------------------
| ir ast |
ir _ IRBuilder new
       numRargs: 1;
       addTemps: #(self);
       "pushTemp: #self;"
       pushLiteral: 3;
       pushLiteral: 2;
       send: #+;
       pushLiteral: 2;
       send: #*;
       send: #factorial;
       returnTop;
       ir.

ast _ IRDecompiler new decompileIR: ir
-----------------------------------------


There is a bug when clicking on 'all inst vars'.
This is due to a bad initialization in SmaCCToken I think.
The 'start' atribut is nil by default.
But a number is expected. So I think is beter to initialize 'start' with 0.
You have to install the NewCompiler and all dependency befor execute the sample.
has duplicate 0003877closed KenCausey SmaCCToken don't initialize start atribut correctly 

Notes
(0005811)
MarcusDenker   
07-12-06 20:22   
is in SqueakSource