# -----------------------------------------------------------------------------
# A simple calculator with variables. This is from O'Reilly's
# -----------------------------------------------------------------------------
sys.path.insert(0,"../..")
if sys.version_info[0] >= 3:
literals = ['=','+','-','*','/', '(',')']
t_NAME = r'[a-zA-Z_][a-zA-Z0-9_]*'
t.lexer.lineno += t.value.count("\n")
print("Illegal character '%s'" % t.value[0])