Skip to content
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
merged 31 commits into from
Feb 3, 2022

Conversation

ethanmoffat
Copy link
Owner

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.

…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.
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
…e connection/interpreter setup semantics to better support calling from bot framework.
…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
… 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)
@ethanmoffat ethanmoffat merged commit e2b2f6d into master Feb 3, 2022
@ethanmoffat ethanmoffat deleted the bot_interpreter branch February 3, 2022 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant