-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and simplification of expression AST builder
* Removed most recursive collections of functions * Removed 2 modes of parsing (recursive descent, LL2) * Replaced with LL2, but with similar performance to recursive descent (tests run 5ish% faster) * only tail recursion (except for parentheses) * max recursion depth = 2 with parentheses * better precedence processing means that inner items tend to be processed first * LL2 where: if a node is unable to be processed, the system can continue to process later nodes * unprocessed node can lock nodes around it to prevent incorrect precedence * Removed 20% of code
- Loading branch information
Showing
12 changed files
with
584 additions
and
543 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
Oops, something went wrong.