Fix bug in example on README to match example in calc.py; NUMBER was not returned as int

This commit is contained in:
Dan Shorstein 2018-11-20 22:12:31 -05:00
parent d1b9f64e49
commit dd41efd112

View File

@ -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):