-
-
Notifications
You must be signed in to change notification settings - Fork 452
Open
Labels
Description
I tried using the calculator example with use_bytes=True but it wouldn't parse a NUMBER:
ValueError: could not convert string to float: Token('NUMBER', b'1')
I had to modify
Line 46 in f68e353
| number = float |
number = lambda _, token = float(token.value)even though Token.value specifies that it is redundant to write token.value because it's always equal to token.
Using Lark 1.2.2.