Search   Feed   Browse   Add
Feed items 1 - 3 of 3 for January 2006

Allison's Journal

Allison's use Perl Journal

Punie value types - January 21, 2006

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.
http://use.perl.org/~Allison/journal/28428?from=rss

Punie commas - January 12, 2006

Last journal post I mentioned I was in the process of deciding which way to transform the tree structure for comma lists. Between options A, B, and C, I chose option D: modify the parser grammar. I actually implemented option B, but the result was somewhat tortured (a "code smell"), and it looked like A and C would be equally tortured. Interestingly, the way you write the parser grammar can make it easier or harder to transform the resulting parse tree. In this case, following the old yacc...
http://use.perl.org/~Allison/journal/28333?from=rss

strings, commas, and operator precedence - January 8, 2006

On my Parrot days this week I started to add operator support (just + and - to start), but ran into a snag with PGE's operator precedence parser. I expect it's just an undocumented necessary step, so I dropped a note to Patrick and set that aside. Instead, I made the changes to take advantage of fact that PGE::Text::bracketed now extracts the bracketed value for you. (Thanks Patrick!) And then I started on comma lists. I've got it parsing and transforming to PAST. I'm currently trying to...
http://use.perl.org/~Allison/journal/28279?from=rss
Available Archives
- January (3 items)
- February (4 items)
- March (2 items)
- April (3 items)
- May (1 item)
- June (2 items)
- September (1 item)
- November (2 items)
- December (1 item)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact