Commit Graph

84 Commits

Author SHA1 Message Date
Erez Shinan 2973167cf0 Added a test for empty rules 2017-03-01 10:42:47 +02:00
Erez Shinan df4d471641 Updated docs to match v0.2 2017-02-26 13:12:16 +02:00
Erez Shinan abfa14c721 Tiny fix in reconstruct_json (Py3) 2017-02-26 12:07:29 +02:00
Erez Shinan c9b45823ed Better support for scanless parsing 2017-02-26 12:05:56 +02:00
Erez Shinan a5a20a423a Changed parser/lexer interface in lark. Bumped minor version 2017-02-25 18:35:31 +02:00
Erez Shinan fbba305a9e Fixed grammars 2017-02-24 00:45:34 +02:00
Erez Shinan 5236e4a32a Refactored TokenDef to store Pattern(Str/RE) 2017-02-23 23:50:52 +02:00
Erez Shinan a0bb661c61 Token import now working 2017-02-23 23:01:31 +02:00
Erez Shinan c70355389f Initial support for EBNF in tokens (automatic compilation to regexps) 2017-02-23 13:01:21 +02:00
Erez Shinan 8e7395c6d6 Improved earley.py and added some comments to both parsers 2017-02-21 16:02:09 +02:00
Erez Shinan a0fbecee70 Tiny improvement in Earley 2017-02-21 02:09:50 +02:00
Erez Shinan 9f00b3fab7 Re-wrote Earley's mainloop implementation. Better performance.
Now uses Column & NewsList instead of sets.
2017-02-21 02:01:03 +02:00
Erez Shinan 4076256faa Reconstruct working again 2017-02-20 20:39:20 +02:00
Erez Shinan 499eb19c77 Merge branch 'myearley' 2017-02-20 20:20:36 +02:00
Erez Shinan c14435ac95 Some cleanup 2017-02-20 20:20:26 +02:00
Erez Shinan c17558dd91 Official switched to my Earley implementation 2017-02-20 20:15:29 +02:00
Erez Shinan 538f944602 My Earley parser is working 2017-02-20 20:00:24 +02:00
Erez Shinan e4d3e74f6a Finished refactoring 2017-02-20 00:37:08 +02:00
Erez Shinan d5123812b0 Another step of refactoring 2017-02-20 00:24:35 +02:00
Erez Shinan b95567c4a7 Another refactoring step 2017-02-20 00:13:54 +02:00
Erez Shinan 972034fd2d Began refactoring of lalr_analysis -> grammar_analysis 2017-02-20 00:11:56 +02:00
Erez Shinan 07df4b80eb My Earley parser is now working. Not yet plugged in 2017-02-20 00:11:09 +02:00
Erez Shinan 8189172701 recognizer working 2017-02-19 14:49:23 +02:00
Erez Shinan 1456daddbe Improved comments in examples 2017-02-17 23:23:13 +02:00
Erez Shinan 43da0ddad9 Initial reconstruct, working with example!
Definitely needs more work though
2017-02-16 19:34:07 +02:00
Erez Shinan 0b902b1d03 Added the '!' prefix to keep all tokens in rule. Also removed tools (it's now in lark/tools) 2017-02-16 01:36:24 +02:00
Erez Shinan b7dcfbca58 Tools can now be installed via pip 2017-02-15 14:50:47 +02:00
Erez Shinan 137536b6a6 Merge branch 'superlexer2' (Contextual Lexer) 2017-02-15 10:47:18 +02:00
Erez Shinan c8e6122148 Restored nice error reports 2017-02-15 10:41:39 +02:00
Erez Shinan d4425887d6 Added conf.py example and indenter support in contextual lexing 2017-02-15 10:33:22 +02:00
Erez Shinan 63c8e58e42 Fixed calc example 2017-02-15 10:00:01 +02:00
Erez Shinan 520ab88cd8 Added ContextualLexer for LALR. Working, but doesn't seem to improve speed.
Also some issues with python_parser
2017-02-15 00:45:00 +02:00
Erez Sh df80933884 Merge pull request #1 from jwilk/spelling
Fix typos
2017-02-14 23:14:05 +02:00
Jakub Wilk fc9eb012a1 Fix typos 2017-02-14 22:03:07 +01:00
Erez Shinan 3d4ee92829 Fixed bug in load_grammar. Improved nearley converter 2017-02-14 21:15:39 +02:00
Erez Shinan 52753cb3aa Python 3... 2017-02-14 20:25:33 +02:00
Erez Shinan 387b701670 Added Nearley-to-lark converter 2017-02-14 20:24:37 +02:00
Erez Shinan 20e2e477a7 Updated README 2017-02-14 16:54:16 +02:00
Erez Shinan da15f99edb Added the earley_nolex frontend, and a conf_nolex example to use it 2017-02-14 13:12:00 +02:00
Erez Shinan 355afa8809 Fixed setup.py, version bump 2017-02-14 12:44:45 +02:00
Erez Shinan fee18a8d8a Improvements and cleanup to the earley parser 2017-02-13 21:01:02 +02:00
Erez Shinan f31482c236 Lint treatment 2017-02-13 19:28:07 +02:00
Erez Shinan 7af3de208d Moved lexing responsibility to parser frontend 2017-02-13 14:33:22 +02:00
Erez Shinan 387fa07818 Moved unless handling to lexer and improved code 2017-02-13 12:39:05 +02:00
Erez Shinan a438255193 Fixed bug in lexer. Fixed calc example 2017-02-13 07:41:27 +02:00
Erez Shinan 1602482608 Improved error reporting in Earley 2017-02-12 23:31:09 +02:00
Erez Shinan 7ba98c46f6 Fixed examples. They didn't work with python3 2017-02-12 18:37:43 +02:00
Erez Shinan 9c1a81b709 tiny README update 2017-02-12 14:33:14 +02:00
Erez Shinan 09a80ed222 Fixed bug in lexer where unidentical tokens got the same name 2017-02-12 00:36:34 +02:00
Erez Shinan ee798f81f2 Fixed bug where identical anonymous tokens got separate names 2017-02-11 21:15:57 +02:00