Sounds like you're right!
Ter
On Oct 27, 2010, at 8:01 PM, Juan Fernando Herrera J. wrote:

> There seems to be an error in Pie.g, where it reads
> 
> atom[boolean defer] returns [Object value]
>    :   INT     {if (!defer) $value = $INT.int;} // return int value
>    |   ID      {if (!defer) $value = interp.load($ID);} // look up value
>    |   CHAR    {if (!defer) $value = new Character($CHAR.text.charAt(1));}
>    |   FLOAT   {if (!defer) $value = new Float($FLOAT.text);}
>    |   STRING  {String s = $STRING.text; if (!defer) $value =
> s.substring(1,s.length()-1);}
>    |   structscope[defer] '.' ID // field access
>        {if ( !defer ) $value = interp.fieldload($structscope.value, $ID);}
>    |   'new' ID    {if (!defer) $value = interp.instance($ID.text);}
>    |   '(' expr[defer] ')'
> 
> Should the last line be
> 
>    |   '(' expr[defer] ')' {if (!defer) $value = $expr.value;}
> 
> ?
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to