Message191995
Thanks for the link plural.y! I was looking for a C file, not a YACC file.
The AST approach has advantages over tokenizing. The tokenizer returns just symbols but the AST has also context information. It makes it much easier to distinguish between unary - and binary -. Gettext supports substraction but doesn't allow negative numbers.
Python's gettext is not as strict as GNU gettext. For 3.4 I like to forbid oct and hex numbers, too. |
|
Date |
User |
Action |
Args |
2013-06-28 14:57:52 | christian.heimes | set | recipients:
+ christian.heimes, barry, pitrou, benjamin.peterson, jwilk |
2013-06-28 14:57:52 | christian.heimes | set | messageid: <1372431472.65.0.334700769741.issue18317@psf.upfronthosting.co.za> |
2013-06-28 14:57:52 | christian.heimes | link | issue18317 messages |
2013-06-28 14:57:52 | christian.heimes | create | |
|