Fix bug in example on README to match example in calc.py; NUMBER was not returned as int
This commit is contained in:
parent
d1b9f64e49
commit
dd41efd112
@ -158,7 +158,7 @@ expressions and store variables:
|
|||||||
|
|
||||||
@_('NUMBER')
|
@_('NUMBER')
|
||||||
def expr(self, p):
|
def expr(self, p):
|
||||||
return p.NUMBER
|
return int(p.NUMBER)
|
||||||
|
|
||||||
@_('NAME')
|
@_('NAME')
|
||||||
def expr(self, p):
|
def expr(self, p):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user