arith worms
This commit is contained in:
parent
d0e98e54ce
commit
1f6c6614a4
|
@ -21,7 +21,7 @@ def t_NUMBER(t):
|
||||||
|
|
||||||
def t_EXP(t):
|
def t_EXP(t):
|
||||||
r'\*\*'
|
r'\*\*'
|
||||||
pass
|
return t
|
||||||
|
|
||||||
lexer = ply.lex.lex()
|
lexer = ply.lex.lex()
|
||||||
|
|
||||||
|
@ -76,5 +76,3 @@ parser = ply.yacc.yacc()
|
||||||
while True:
|
while True:
|
||||||
s = input('calc> ')
|
s = input('calc> ')
|
||||||
ply.yacc.parse(s)
|
ply.yacc.parse(s)
|
||||||
if s == '':
|
|
||||||
break
|
|
||||||
|
|
Loading…
Reference in New Issue