Browse Source

number add BIN_NUMBER

Without BIN_NUMBER, the following error occurs:
lark.exceptions.UnexpectedCharacters: No terminal defined for 'b' at line 1 col 2

0b10
 ^
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.66
Haski-server 5 years ago
committed by GitHub
parent
commit
c2a5f09ad5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/python3.lark

+ 1
- 1
examples/python3.lark View File

@@ -161,7 +161,7 @@ yield_expr: "yield" [yield_arg]
yield_arg: "from" test | testlist


number: DEC_NUMBER | HEX_NUMBER | OCT_NUMBER | FLOAT_NUMBER | IMAG_NUMBER
number: DEC_NUMBER | HEX_NUMBER | BIN_NUMBER | OCT_NUMBER | FLOAT_NUMBER | IMAG_NUMBER
string: STRING | LONG_STRING
// Tokens



Loading…
Cancel
Save