SmaCCToken>>value:

Mathieu SUEN mathk.sue at gmail.com
Sat Jun 24 18:06:46 UTC 2006


Hi,

In the [SmaCCToken class>>value:] method the atribut start is
initialize with nil.
But the sementic of start is a number so dose it not better to
initialize with 0?

I have an error when I inpect the following code: (When clicking on
'all inst vars')
-------------------------------------------------------
| 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
-------------------------------------------------------

(You have to have the NewComiler to test it)

Best regards,
Math



More information about the Squeak-dev mailing list