mv lexer.py -> lexrules.py, remove get_lexer() and ply import

This commit is contained in:
Josh Holtrop 2011-08-29 14:37:36 -04:00
parent bcb1e6a6ff
commit 71f4b01c23

View File

@ -1,6 +1,4 @@
import ply.lex as lex
reserved = {
'C': 'C',
}
@ -33,6 +31,3 @@ def t_newline(t):
def t_error(t):
print 'Illegal character "%s"' % t.value[0]
t.lexer.skip(1)
def get_lexer():
return lex.lex()