This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
gitmirror
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
39
Wiki
Activity
Browse Source
Added comment
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.10.0
Erez Sh
4 years ago
parent
c015e02336
commit
023709f710
1 changed files
with
1 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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])
return make_recons_rule(origin, [Terminal(term.name)], [term])
def _isalnum(x):
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']
return unicodedata.category(x) in ['Lu', 'Ll', 'Lt', 'Lm', 'Lo', 'Nl', 'Mn', 'Mc', 'Nd', 'Pc']
class Reconstructor:
class Reconstructor:
Write
Preview
Loading…
Cancel
Save