Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Allison (3003)

  (email not shown publicly)

Human (I think).

Journal of Allison (3003)

Saturday January 21, 2006
06:00 PM

Punie value types

[ #28428 ]
I modified Punie's grammars yesterday to make it a little smarter about how it handles different kinds of literal values. It now annotates the PAST and POST nodes with info about what kind of value was extracted in the parse. This solves Bernhard's problem with double quotes appearing around integers. While I was at it, I went ahead and added support (and tests) for floating point numbers and single quoted strings.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Thanks for adding the support for different 'valtype's in PAST::Val.

    I have updated 'Parrot bc' accordingly. In the ANTLR PAST data structure there are now the nodes 'PAST_Val_Strqq' and 'PAST_Val_Num' which set the 'valtype' to 'strqq' and 'num' when dumping to PIR.

    /* */