Browse Source

Added comment

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.10.0
Erez Sh 4 years ago
parent
commit
023709f710
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lark/reconstruct.py

+ 1
- 0
lark/reconstruct.py View File

@@ -96,6 +96,7 @@ def make_recons_rule_to_term(origin, term):
return make_recons_rule(origin, [Terminal(term.name)], [term])

def _isalnum(x):
# Categories defined here: https://www.python.org/dev/peps/pep-3131/
return unicodedata.category(x) in ['Lu', 'Ll', 'Lt', 'Lm', 'Lo', 'Nl', 'Mn', 'Mc', 'Nd', 'Pc']

class Reconstructor:


Loading…
Cancel
Save