-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add indexed Visitor classes for LazyParsley (#206)
* feat: add visitor for LazyParsley used for matching and processing while carrying context without having to pattern match or type match must be extended every time a new internal parser class is added * refactor: marked visitors as visible only to parsley.internal * test: add tests for laziness preservation and for testing if the visitors are running properly. also fixed Lift3's missing laziness in the visitor class. * style: shortened lines for visit implementations within LazyParsley classes * fix: strengthened GenericLazyParsleyIVisitor's private bound to frontend, also explicitly declared Any type parameter for *> and <*'s default implementations in that generic visitor * fix: explicitly declared ManyUntil and SkipManyUntil's default overrides' type arguments to visitUnary due to Any inference * fix: LazyParsleyIVisitor's private bound weakened further to parsley to match LazyParsley's private upper bound * fix: subbed functions for partial case analyses where appropriate --------- Co-authored-by: Jamie Willis <[email protected]>
- Loading branch information
Showing
18 changed files
with
620 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.