Commit Graph

45 Commits

Author SHA1 Message Date
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
Erez Shinan b75fc45a2a Oops 2 2017-02-11 20:04:13 +02:00
Erez Shinan b2fc4f872c oops 2017-02-11 20:01:08 +02:00
Erez Shinan eabb86860d Added parsimonious to benchmarks 2017-02-11 20:00:35 +02:00
Erez Shinan 977025fded Small parser optimization 2017-02-11 17:11:30 +02:00
Erez Shinan 717eabba2c A small parser optimization 2017-02-11 16:57:58 +02:00
Erez Shinan 772f1cc0aa Improved error reporting 2017-02-11 16:42:41 +02:00
Erez Shinan a98d3c93b1 Small additions to the docs 2017-02-11 15:51:47 +02:00
Erez Shinan 57e8117374 Some package fixes 2017-02-11 11:12:15 +02:00
Erez Shinan 2f6f3f9a31 Changed to the MIT license 2017-02-11 10:41:40 +02:00
Erez Shinan e201beab5f Fixed lexer newline counter and other stuff 2017-02-11 00:50:48 +02:00
Erez Shinan e7445a11ae Added a docs/reference 2017-02-10 16:10:13 +02:00
Erez Shinan 45060df80d Optimized the tree builder, and updated docs 2017-02-10 13:19:32 +02:00
Erez Shinan 1fc41c9d02 Added a JSON parser tutorial 2017-02-10 12:55:07 +02:00
Erez Shinan 8b9c5801da Improved lexer, added profiler option to Lark 2017-02-10 11:50:50 +02:00
Erez Shinan 0d48385721 README: Added hello world and parser comparison 2017-02-08 12:19:10 +02:00
Erez Shinan ab23c163d8 Fixed bug in lalr parser. Now testing both lalr & earley in test_parser 2017-02-08 01:28:50 +02:00
Erez Shinan 2ee72baf09 Added a few anon-token names 2017-02-08 01:03:08 +02:00
Erez Shinan 115c4c6d21 A little order and refactoring 2017-02-08 00:53:42 +02:00
Erez Shinan f1b2e1926c Now supports Python3! 2017-02-07 21:56:09 +02:00
Erez Shinan d55598a831 Fixed aliases (broken by re-write of load_grammar) 2017-02-07 21:35:42 +02:00
Erez Shinan 8b182b37c0 Added an automatic 'unless' mechanism for (some) colliding tokens 2017-02-07 20:14:14 +02:00
Erez Shinan 56f68655ca Fixed a small bug in parser error reporting 2017-02-07 19:57:25 +02:00
Erez Shinan 2e8f74c774 Better error reporting in lexer and lalr parser 2017-02-07 17:58:02 +02:00
Erez Shinan cde2b677bb Added tests and lots of fixes and refactoring 2017-02-07 17:42:25 +02:00
Erez Shinan aecb4f5aa7 Added regex embedding for tokens 2017-02-06 19:27:11 +02:00
Erez Shinan faf66c93f0 Fixed possible tokens collisions (strings are now always tested before regexps) 2017-02-06 00:06:22 +02:00
Erez Shinan c2dbad1335 Renamed json_example to json_parser 2017-02-05 21:27:07 +02:00
Erez Shinan 9e71f5a045 Added indentation support (for python-like languages) 2017-02-05 21:25:49 +02:00
Erez Shinan d44658fa3f Now supports empty rules. Added some tests. All tests passing. 2017-02-05 17:46:32 +02:00
Erez Shinan 77d8963bf7 Added examples (calc, json) 2017-02-05 13:40:19 +02:00
Erez Shinan cf8c455cdf Added a short README file 2017-02-05 13:24:08 +02:00
Erez Shinan 92ce395ea8 Earley & Lalr both working an generating AST. Examples now use inline_args 2017-02-05 12:55:37 +02:00
Erez Shinan 73178d6ae0 Lark big first commit. Examples working. 2017-02-04 22:49:52 +02:00
Erez Sh 571c4ca5f3 Initial commit 2017-02-04 22:39:00 +02:00