Punie value types

Allison on 2006-01-21T23:00:50

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.


Parrot bc updated

Bernhard on 2006-01-22T12:39:55

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.