-
-
Notifications
You must be signed in to change notification settings - Fork 440
env[] keyword implemented in parser #382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
486e0da
Implemented env[] keyword and tests.
mdmcconnell 39225da
env keyword must take string (no unquoted literals)
mdmcconnell 2cb92eb
Fixed error failing to ignore closing bracket
mdmcconnell 14abd99
Removed env keyword from lexer.
mdmcconnell 268eb41
Implemented env[] keyowrd for abitrary identfiers
mdmcconnell 03616c7
Allow for non-integer index with env keyword
mdmcconnell 65d64c5
Allow for non-integer index with env keyword
mdmcconnell a5c8d90
Removed env implementation (previous commit)
mdmcconnell 9e3c044
Added OpFetchEnv
mdmcconnell bb22e0e
Implemented OpFetchEnv
mdmcconnell 887f0b7
Improved error message for non-string env index
mdmcconnell f5ddd6a
Tests env when index must be evaluated
mdmcconnell fc28fb2
Deal with env[] keywod member node.
mdmcconnell 9b3857f
Allow for non-integer index with env keyword
mdmcconnell 9a2d59f
Typo.
mdmcconnell 3e8608f
Check when env index is StringNode, handle type
mdmcconnell e5303ca
Implement env keyword in IdentifierNode with OpLoadEnv
mdmcconnell f45da29
Removed unused code
mdmcconnell e4130f3
Add OpLoadEnv, remove OpFetchEnv
mdmcconnell 1cdb746
Add OpLoadEnv, remove OpFetchEnv
mdmcconnell b1fe261
Check for incorrect use of env keyword
mdmcconnell 84d3631
Remove obsolete tests
mdmcconnell fee4852
Added tests for env. and env?.
mdmcconnell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ const ( | |
OpLoadFast | ||
OpLoadMethod | ||
OpLoadFunc | ||
OpLoadEnv | ||
OpFetch | ||
OpFetchField | ||
OpMethod | ||
|
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.