-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed the Optimizer and the Sidef deparser.
- Added three optimization levels: 0 -> does nothing (default) 1 -> does constant folding on the AST 2 -> does constant folding, then it deparses the AST into code and parses the code again, after which it does another constant folding on the new AST - Improved and fixed some corner cases inside the Parser. For example: obj->method[0]; # didn't work before correctly # now it means: (obj->method)[0] - Improved the interactive mode to supprot deparsing with optimization levels specified. Example: $ sidef -i -r -O1 # enters in interactive mode and prints the deparsed code with constant-folding applied >> say (1 + 2) say(3); # prints this >>
- Loading branch information
trizen
committed
Oct 30, 2015
1 parent
1ee0672
commit 83d3450
Showing
23 changed files
with
536 additions
and
256 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
Oops, something went wrong.