[Python-Dev] Adding a token (original) (raw)

Benjamin Peterson benjamin at python.org
Sun Aug 8 03:42:33 CEST 2010


2010/8/7 Greg Ewing <greg.ewing at canterbury.ac.nz>:

I'm trying to add a '?' token to the parser, and weird things are happening.

Why do you even have to add a new token? You can just put the literal '?' in the grammar.

-- Regards, Benjamin



More information about the Python-Dev mailing list