yacc statement recognition
slafs.e at gmail.com
Fri Jan 2 00:21:18 CET 2009
I have to write in yacc an acceptor of files with lines matching this
and I don't know what I am doing wrong beacuse this:
tokens = (
literals = [',']
t_NUMBER = r'\d'
'''statement : NUMBER ',' NUMBER
also accepts lines like 2,abcdef3 which of
could someone please tell me what's wrong in my code?
full source on http://paste-it.net/public/vba22d5/
More information about the Python-list