7beb681563 
								
							
								 
							
						 
						
							
							
								
								Adds stubs; cleanup  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c6819a0ed7 
								
							
								 
							
						 
						
							
							
								
								Refactored all likely exceptions to inherit from LarkError, and improved error messages.  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								071a35d1c0 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'MegaIng-grammars-lark-lark'  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								47316488dd 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'grammars-lark-lark' of  https://github.com/MegaIng/lark  into MegaIng-grammars-lark-lark  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								8379d784ec 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #776  from MegaIng/earley_custom  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								83e896b3b8 
								
							
								 
							
						 
						
							
							
								
								Prevent test from running with old custom lexer  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								26e03b9ff8 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' of  https://github.com/lark-parser/lark  into earley_custom  
							
							 Conflicts:
	tests/test_parser.py 
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cf9d0d915e 
								
							
								 
							
						 
						
							
							
								
								Fixes for custom lexer.  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cf25c06420 
								
							
								 
							
						 
						
							
							
								
								Added custom lexer to earley.  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e6dcc43478 
								
							
								 
							
						 
						
							
							
								
								Improve match_examples() for Earley (Issue  #760 )  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								70c233e301 
								
							
								 
							
						 
						
							
							
								
								Update links in pypi (Issue  #714 )  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								b9bfdc926a 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #772  from lark-parser/match_examples  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e6bbfd16c0 
								
							
								 
							
						 
						
							
							
								
								Fixed comment  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7fa993320e 
								
							
								 
							
						 
						
							
							
								
								match_examples() now works for Earley+Standard  
							
							Note: This refactor opens the door for implementing a ContextualLexer for Earley.
But unlike the existing one for LALR, it will have to be computed at runtime,
rather than ahead of time. 
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1aff84391a 
								
							
								 
							
						 
						
							
							
								
								Added test for match_examples  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f285cda4f2 
								
							
								 
							
						 
						
							
							
								
								Earley error reporting - initial (Issue  #760 )  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b3eb2a3120 
								
							
								 
							
						 
						
							
							
								
								Add token_history to UnexpectedToken  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								4e346431d9 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #771  from MegaIng/fix-760  
							
							regression-fix for #760  
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4e442bc0b8 
								
							
								 
							
						 
						
							
							
								
								regression-fix for  #760  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								29c580f57b 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #769  from ThatXliner/patch-1  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2fe5f2ed4c 
								
							
								 
							
						 
						
							
							
								
								Added tests for `lark.lark`  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dd3cf90b2d 
								
							
								 
							
						 
						
							
							
								
								Moved `lark.lark` into the standard library.  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								2e06d4c000 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Update README.md  
							
							Fixed pyparsing link to point to 
https://github.com/pyparsing/pyparsing  
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								1fc0810086 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Fix broken link in README  
							
							See https://gitter.im/lark-parser/Lobby?at=5fb83369771c185e0eb8c0e2  
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								dc22f2218f 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #767  from gward/lexer-stub  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								68e5e86b5b 
								
							
								 
							
						 
						
							
							
								
								Add missing type hint for Token constructor  
							
							mypy thinks that Token's __init__ is inherited from __str__(). That's
not wrong -- it's just irrelevant, because Token also implements
__new__(). Token's _effective_ constructor signature is determined by
its __new__() method, so that's what I have used in the type hint.
Not clear if 'value' is supposed to be Any, but that's what I need in
my application. And it works just fine! 
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								11a0052eb5 
								
							
								 
							
						 
						
							
							
								
								Fix incorrect type hint for 'lexer' argument to Lark constructor  
							
							The code is crystal clear:
  assert lexer in ('standard', ...) or issubclass(lexer, Lexer)
But the type hint said that lexer must be an _instance_ of Lexer, not
a subclass. This change fixes it to require a subclass of Lexer. 
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								074a7c7e12 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #766  from MegaIng/patch-3  
							
							Adding missing Testcase to `__main__` 
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								a4ddb1e84f 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Adding missing Testcase to `__main__`  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c715426f32 
								
							
								 
							
						 
						
							
							
								
								Version bump to 0.11.1  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								1a3df7909f 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #755  from chanicpanic/fix-index-error  
							
							Fix IndexError 
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								a98c108bf5 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #762  from ThatXliner/patch-1  
							
							📝  Updated docs 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								fecfe87a40 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								📝  Updated docs  
							
							Replaced the notice saying only `common.lark` is available into "`common.lark`, `python.lark`, and `unicode.lark`". 
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								27ef9fcbf0 
								
							
								 
							
						 
						
							
							
								
								Add information about debug=True (Issue  #750 )  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5f230c6663 
								
							
								 
							
						 
						
							
							
								
								Version bump  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cd78243b82 
								
							
								 
							
						 
						
							
							
								
								Examples: Added new syntax to python grammar  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								ce28af82ca 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #759  from MegaIng/fix-758  
							
							Make `LALR_CustomLexerWrapper` behave correctly + tests 
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2d8bd42315 
								
							
								 
							
						 
						
							
							
								
								Make `LALR_CustomLexerWrapper` behave correctly + tests  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								13abf7ca3a 
								
							
								 
							
						 
						
							
							
								
								Add test for custom indenter  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								4246477aae 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #756  from MegaIng/patch-2  
							
							Make `UnexpectedCharacters` print the repr 
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								633a6dfee8 
								
									
										
											
								
							
								 
							
						 
						
							
							
								
								Make `UnexpectedCharacters` print the repr  
							
							This is an additional response to #738 .
I also often came across this when unexpectedly having a newline, which would previously result in the message being split up across two lines. This PR makes it easier to identify exactly which special character is causing problems. 
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ff155cd21a 
								
							
								 
							
						 
						
							
							
								
								Added unicode.lark (Issue  #738 )  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								820e185dca 
								
							
								 
							
						 
						
							
							
								
								Fix IndexError (issue  #754 )  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5149d38e25 
								
							
								 
							
						 
						
							
							
								
								tools.nearley: Add support for case-insensitive strings (Issue  #753 )  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5b30ba4841 
								
							
								 
							
						 
						
							
							
								
								Cleanup, and a few PEP8 changes  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f8b0ca3ccc 
								
							
								 
							
						 
						
							
							
								
								Code review 3  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1b2fc2bda4 
								
							
								 
							
						 
						
							
							
								
								Code review  #2  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								364f9ae3a5 
								
							
								 
							
						 
						
							
							
								
								Response to code review  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								02c39a84db 
								
							
								 
							
						 
						
							
							
								
								Skipping this test for Python 2 for now.  
							
							
								
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e5081420c6 
								
							
								 
							
						 
						
							
							
								
								Add encoding specification for Python 2  
							
							
								
							
							
						 
						5 years ago