-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add interpreter for EOBot. Allows scripts to be run against eoserv instances #100
Merged
Conversation
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
…ression handling. Ensure nested parenthesis get evaluated correctly.
Fix minor bugs throughout existing code. At this point you can set a variable and print the result
…st token if there wasn't a trailing newline character at the end of the file.
…ry evaluated statement
Add script path command line argument
Allow expressions to be functions Fix return value of functions to always be added to operation stack Add array and len functions
…to a read-only variable/function
…on (e.g. function call in if() statement)
…e connection/interpreter setup semantics to better support calling from bot framework.
…d automatic disconnect for scripted bots.
…for bots in consideration of bcrypt hash in etheos. Add timestamp function 'time()'
… before checking it when signaling consumer. Fixes crash bug when debugging due to race condition
…info in each token for error reporting
… if attempting to get a token outside the range of the program list
…thod to tuple with status, error reason, and relevant token. Use status enum to differentiate fatal errors from an evaluator not matching the current execution point. Improve existing error checkiong throughout interpreter.
…lows quicker testing of scripts that don't do any connection stuff or scripts that want more control over when to connect (for single bot instance)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
See individual commits for more details.
This is an initial release of the bot script functionality. You can assign variables, call functions, and do some conditional branching (if, while, and goto). Arguments can be passed from the command line, and you can control if bots automatically connect/disconnect to the server or not.