| # ----------------------------------------------------------------------------- |
| # Writes table in a subdirectory structure. |
| # ----------------------------------------------------------------------------- |
| if ".." not in sys.path: sys.path.insert(0,"..") |
| 'PLUS','MINUS','TIMES','DIVIDE','EQUALS', |
| t_NAME = r'[a-zA-Z_][a-zA-Z0-9_]*' |
| print("Integer value too large %s" % t.value) |
| t.lineno += t.value.count("\n") |
| print("Illegal character '%s'" % t.value[0]) |
| lex.lex(optimize=1,lextab="lexdir.sub.calctab",outputdir="lexdir/sub") |