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
Removed bad syntax: *? and +? no longer accepted by the grammar parser (Issue
#511
)
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.8.0
Erez Sh
5 years ago
parent
2f92c7b4a7
commit
182385d7b7
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
examples/lark.lark
+1
-1
lark/load_grammar.py
+ 1
- 1
examples/lark.lark
View File
@@ -33,7 +33,7 @@ name: RULE
| TOKEN
_VBAR: _NL? "|"
OP: /[+*]
[?]?
|[?](?![a-z])/
OP: /[+*]|[?](?![a-z])/
RULE: /!?[_?]?[a-z][_a-z0-9]*/
TOKEN: /_?[A-Z][_A-Z0-9]*/
STRING: _STRING "i"?
+ 1
- 1
lark/load_grammar.py
View File
@@ -73,7 +73,7 @@ TERMINALS = {
'_RPAR': r'\)',
'_LBRA': r'\[',
'_RBRA': r'\]',
'OP': '[+*]
[?]?
|[?](?![a-z])',
'OP': '[+*]|[?](?![a-z])',
'_COLON': ':',
'_COMMA': ',',
'_OR': r'\|',
Write
Preview
Loading…
Cancel
Save