405f6a399d 
								
							
								 
							
						 
						
							
							
								
								From and relative type imports seem to work.  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e7212261b2 
								
							
								 
							
						 
						
							
							
								
								Fixed examples for error reporting  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d11c67fea0 
								
							
								 
							
						 
						
							
							
								
								Fixed reconstruct  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6ea4588bcf 
								
							
								 
							
						 
						
							
							
								
								Dynamic lexer is now returns the maximum match only. Complete lexing beahvior moved to "dynamic_complete"  
							
							Changed dynamic lexer behavior to only match terminals to their maximum length (i.e. greedy match), emulating the standard lexer.
The original dynamic lexer behavior, that attempts to match all appearances of a terminal, has been moved to the "dynamic_complete" lexer.
For example, when applying a terminal "a"+ to the text "aaa":
- dynamic: ["aaa"]
- dynamic_complete: ["a", "aa", "aaa"] 
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0e33217321 
								
							
								 
							
						 
						
							
							
								
								Updated version  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5c6df8e825 
								
							
								 
							
						 
						
							
							
								
								Moved and restructured exceptions  
							
							* All exceptions are now under exceptions.py
* UnexpectedInput is now superclass of UnexpectedToken and UnexpectedCharacters,
  all of which support the get_context() and match_examples() methods. 
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c0cf1b3176 
								
							
								 
							
						 
						
							
							
								
								Added some docstrings, removed is_terminal from common  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c77934f6a2 
								
							
								 
							
						 
						
							
							
								
								Fixed nearley  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6d76a4ce8d 
								
							
								 
							
						 
						
							
							
								
								visitor_args -> v_args  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								34cd792ffc 
								
							
								 
							
						 
						
							
							
								
								Fixed Python grammars, and a bug in newline detection  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ac0d49e7ab 
								
							
								 
							
						 
						
							
							
								
								Added %declare  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6bfc27c11d 
								
							
								 
							
						 
						
							
							
								
								New transformers near completion  
							
							Nearley tool still needs fixing 
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4864a1cf4d 
								
							
								 
							
						 
						
							
							
								
								More work  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5e546f38a9 
								
							
								 
							
						 
						
							
							
								
								args decorators actually work now  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9daacb9082 
								
							
								 
							
						 
						
							
							
								
								Refactored transformers, better code  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1508dcd7c5 
								
							
								 
							
						 
						
							
							
								
								Refactored inline_args with smart_decorator  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								55e9d56792 
								
							
								 
							
						 
						
							
							
								
								Missed those at merge  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2b4ef11ebf 
								
							
								 
							
						 
						
							
							
								
								Columns now start at 1  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ea413fd648 
								
							
								 
							
						 
						
							
							
								
								Simplify PrepareAnonTerminals  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0d56b0cf30 
								
							
								 
							
						 
						
							
							
								
								Anon terminals no longer need to start with _  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7b32ffd83a 
								
							
								 
							
						 
						
							
							
								
								Fixed token visibility rules (Issue  #109 )  
							
							Anonymous tokens would become visible if they had the same value as named tokens.
That's because they are merged for the lexer. But after this change, the rules for
visibility are based on their use in the rule, and not their name or identity. 
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c5e6cf0954 
								
							
								 
							
						 
						
							
							
								
								Refactoring to introduce Symbol instances before creating anons  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1839c324d3 
								
							
								 
							
						 
						
							
							
								
								Small refactoring step  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								33caa391d5 
								
							
								 
							
						 
						
							
							
								
								Breaking backwards compatibility:  
							
							* Removed the scanless parsing feature (dynamic lexing is king)
* Default LALR lexer is now contextual 
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4a5aa745ea 
								
							
								 
							
						 
						
							
							
								
								All tests passing  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cf7ddeee88 
								
							
								 
							
						 
						
							
							
								
								Earley working too  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								67f372c994 
								
							
								 
							
						 
						
							
							
								
								Symbols instead of strings - initial  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								51644a6c58 
								
							
								 
							
						 
						
							
							
								
								Added examples/lark.g - Reference implementation of the Lark grammar  
							
							(inspired by issue #116 ) 
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4a7a66d773 
								
							
								 
							
						 
						
							
							
								
								.lark (preparing)  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								209a3fe8fd 
								
							
								 
							
						 
						
							
							
								
								Interface improvements for the Lark instance  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0f0776c0fa 
								
							
								 
							
						 
						
							
							
								
								BUGIX in lexer: Embedding strings overwrote priority (Issue  #121 )  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1854b81ebc 
								
							
								 
							
						 
						
							
							
								
								interpreter: default behavior changed to return the values instead of discarding them, added test showcasing the behavior  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f5550b3040 
								
							
								 
							
						 
						
							
							
								
								Implemented a new visitor class (Interpreter) that works top-down (PR  #130 )  
							
							It emulates antlr's visitor behavior for a dynamic evaluation order of subtrees 
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9848cac9f0 
								
							
								 
							
						 
						
							
							
								
								Improved Lark's error reporting for grammar syntax errors (Based on PR  #129 )  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								880f42dd12 
								
							
								 
							
						 
						
							
							
								
								Corrections to PR and added get_context  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e69d567bce 
								
							
								 
							
						 
						
							
							
								
								example driven parser errors  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								138f1d5d76 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Fix order of members when pickling Token  
							
							I found this while porting Token to C, essentially the value and pos_in_stream members of Token were swapped in ``__reduce__``, which means running ``pickle.loads`` and ``pickle.dumps`` would result in unpickled tokens whose value was the original's position in stream, and vice versa. In my C extension this caused a TypeError exception, but the behavior will have to be corrected in both. 
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ca3d4ca6f4 
								
							
								 
							
						 
						
							
							
								
								Changing changes from .lrk to .lark  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c3bce19dc2 
								
							
								 
							
						 
						
							
							
								
								More steps towards a good solution  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f69bceb335 
								
							
								 
							
						 
						
							
							
								
								Snap more things into place  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								349a607ae3 
								
							
								 
							
						 
						
							
							
								
								Some more normalizing  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f960c1b8ac 
								
							
								 
							
						 
						
							
							
								
								Initial: Added transformers.py, and Meta to tree  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								61afbed17a 
								
							
								 
							
						 
						
							
							
								
								A minor style fix (a possible memory usage improvement)  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b9e1e444c9 
								
							
								 
							
						 
						
							
							
								
								Added SlottedTree  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b951b5f79c 
								
							
								 
							
						 
						
							
							
								
								Significant reduction in memory consumption (Saving only parse-table instead of analysis instance)  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ba0dc789a3 
								
							
								 
							
						 
						
							
							
								
								Significantly better memory performance (Thanks @drslump!)  
							
							Added __slots__ to RulePtr and Token, resulting in significantly lower memory consumption.
As suggested by @drslump . 
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eb6e809ffc 
								
							
								 
							
						 
						
							
							
								
								Version bump  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4f2330fc9b 
								
							
								 
							
						 
						
							
							
								
								Fixed bug in Earley prioritization  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								25c3c51b1c 
								
							
								 
							
						 
						
							
							
								
								Fixed bug in Earley: A tree builder optimization clashed with explicit ambiguity  
							
							
								
							
							
						 
						7 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								255ef0d973 
								
							
								 
							
						 
						
							
							
								
								Added error message for the alias syntax in terminals (Issue  #97 )  
							
							
								
							
							
						 
						7 years ago