Jonah Yolles-Murphy
b82f7177cb
added test
4 years ago
Jonah Yolles-Murphy
6cd706279a
make Trees and Tokens' reprs' evalable
4 years ago
Erez Sh
96b0cfbbc4
Docs: error in docs..
4 years ago
Erez Sh
49914424df
Docs: Tiny fix (rst)
4 years ago
Erez Sh
fdd5c83588
Updated docstring for Token
4 years ago
Sasank Chilamkurthy
fd08f470e2
document lark.Token
4 years ago
Erez Sh
7c6e94bf73
Fixed issues with the use_bytes PR, and added documentation
4 years ago
MegaIng1
c93106f143
Tests for bytes parser (credit to @ctrlcctrlv )
4 years ago
MegaIng1
0c89189b5f
Support for bytes parser
4 years ago
Erez Sh
7dc00179e6
Lark now loads faster
- Refactored lexer interface into LexerConf
- Lexer now compiles regexps only when used (especially useful for ContextualLexer)
- Lexer now doesn't validate on deserialize (noticable speedup)
4 years ago
julienmalard
3f524c88c9
Apparently still need re
4 years ago
julienmalard
2ed40237a5
Removed unnecessary imports
4 years ago
julienmalard
09e80a5c9e
Fixed tests
4 years ago
Erez Sh
985c38e0e0
Documentation fix (Removed bloat from README)
4 years ago
julienmalard
86a162d6d8
Added `regex` module as optional mode.
4 years ago
Erez Sh
3bee21051e
Reverted changes regarding EOF
4 years ago
julienmalard
3fc9733188
Added regex module option.
4 years ago
MegaIng1
926c98bd41
Renamed global_flags to g_regex_flags
4 years ago
MegaIng1
3a97029853
Added global_flags option to Lark (+ test)
4 years ago
Erez Sh
b2f1b3bf7c
Small fixes
5 years ago
Erez Sh
8842928963
Fixed multithreading bug in ContextualLexer (Issue #493 )
5 years ago
Erez Shinan
58d6d9fac1
Added Token.end_pos, and updated docs regarding recent commits
5 years ago
Erez Shinan
1815bd7fbd
Support for token visitation in internal transformers, as an alternative mechanism for lexer_callbacks
5 years ago
Erez Sh
e39bfa1b18
Bugfix: Some tokens did not recieve and end_line (Issue #472 )
5 years ago
Timo Furrer
9f218f85b6
Copy exc state when converting UnexpectedCharacters to UnexpectedToken exc. Fixes #462
5 years ago
Erez Sh
a207963e46
Improved error reporting (Issue #194 )
5 years ago
Erez Sh
a7e7b568ff
Fixed contextual lexer error that was confusing users (Issue #194 )
5 years ago
Erez Sh
b6b95c3ff0
Raw docstring to avoid escape warnings (Issue #438 )
5 years ago
Erez Shinan
7e8488d1a0
Fixed issue #425 , keeping in mind unicode issue #411
5 years ago
Erez Shinan
9ca74d7f67
Added the serialize tool for exporting Lark state & analysis
5 years ago
Fábio Macêdo Mendes
1e4dbac58c
Fix undetected newlines on ignored tokens
5 years ago
Erez Shinan
7add0e1f3f
Memoize get_regexp_width (Issue #413 )
5 years ago
Erez Shinan
0d164bd344
Added get_terminal() method (Issue #412 )
5 years ago
Erez Shinan
d952f2a069
Token values are now always unicode (resolves issue #411 )
5 years ago
Erez Shinan
aa75d50bd5
End symbol working for lalr + fixed validation for undefined %ignore
5 years ago
Erez Shinan
f1e844accd
Mid work. Not promising
5 years ago
Erez Shinan
a798dec779
Fix to new serializer code (Discussed in issue #349 )
5 years ago
Erez Shinan
c5cb79307b
Fixes for new standalone (Issue #349 )
5 years ago
Erez Shinan
94e15fb6f7
Mid work. Almost stable
5 years ago
Erez Shinan
d13ebb9c15
Using a mostly-generic serialization method
5 years ago
Erez Shinan
066303fdab
Serialized lark is now json compatible
5 years ago
Erez Shinan
335206911d
Basic serialize/deserialize working!
5 years ago
Erez Shinan
4b915a9f78
Style improvements to errors
5 years ago
Erez Shinan
120d5b9ffa
Mid work
5 years ago
Erez Shinan
e16bb35576
Change maybe_placeholders: Apply to [a] and [a b c], but not a? or (a b)? or [_a _b _c]
6 years ago
Erez Shinan
18c7022b0f
Borrowed tokens now copy end_line/end_column too
6 years ago
Erez Shinan
6b2df208c2
Fixed support for hex encoding (\xAA)
6 years ago
Erez Shinan
1b5f734c49
Bugfix: Callbacks now work for terminals with UnlessCallback (Issue #317 )
6 years ago
Erez Shinan
8ee9b4cfcb
Refactored lexer + tiny bugfix
6 years ago
Erez Shinan
c85098e090
Small refactoring in standalone
6 years ago