-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
script: Script variable support (#577)
* script: Fix value tests * repl: Add debug feature to output tokens * script: Refactor builtin funcs * script: Refactor builtin function definition * repl: Add flag to output expr stats * repl: List script value count * script: De-duplicate script values * script: Lex var keyword * script: Variable runtime support * script: Avoid inlining script eval func * script: Rename builtin vars to consts * script: Reduce max variable count to 16 * repl: Use heap for render buffer * script: Add variable declare support * script: Support var initializer * script: Add variable eval tests * script: Add var read tests * script: Increase variable test coverage * script: Add nested scopes test * script: Add variable limit test * script: Increase var test coverage * script: Fail if var conflicts with func * script: Add error for arg count mismatch on builtin * script: Refactor script scopes * script: Add scopes for if branches * script: Add scopes for select expr * script: Fix incorrect precedence on var declare * script: Expand scope test coverage * script: Refactor scope handling * script: Refactor token consuming * script: Reimplement logic and / or as if exprs * script: Fix unsafe var access in logic ops * script: Fix unsafe var access in ?? op * script: Fix unsafe mem access in ??= * script: Fix unsafe var access in var decl * script: Respect precedence in scoped exprs * script: Add script input on test failure * script: Fix incorrect error in block scopes * script: Add variable assign support * script: Refactor identifier parsing * script: Refactor mem store / modify ops * script: Add variable modify support * script: Add scope around if statements
- Loading branch information
1 parent
c81dea4
commit 3605494
Showing
16 changed files
with
947 additions
and
252 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
Oops, something went wrong.