-
-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VM: Implement variable declaration (var, const, and let) (#1030)
* VM: Implement LetDeclList and the `let` keyword * Support var and const * Split defining and initializing into separate instructions * DefLet doesn't need the value * InitLexical initializes value if set * Code review * Fix rustfmt * Add documentation * InitLexical fix Co-authored-by: jasonwilliams <jase.williams@gmail.com>
- Loading branch information
1 parent
1a7e832
commit 89419e2
Showing
3 changed files
with
92 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