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
make LexerState inherit from object
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.3
Gary Geng
3 years ago
parent
6d6c751a79
commit
38ab4232ae
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
lark/lexer.py
+ 1
- 1
lark/lexer.py
View File
@@ -404,7 +404,7 @@ class TraditionalLexer(Lexer):
raise EOFError(self)
class LexerState:
class LexerState
(object)
:
__slots__ = 'text', 'line_ctr', 'last_token'
def __init__(self, text, line_ctr, last_token=None):
Write
Preview
Loading…
Cancel
Save