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 functions #16

Closed
tmptrash opened this issue Feb 4, 2019 · 0 comments
Closed

Add functions #16

tmptrash opened this issue Feb 4, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@tmptrash
Copy link
Owner

tmptrash commented Feb 4, 2019

Commands:

  • call - goes to function d % amountOfFunctions. Any d should call real function.
  • func - function begin operator. All registers should be pushed into stack before it's call. Function name is an index/position of it in a code.
  • ret - returns to the line after call. All registers should be popped from stack. d value should be set from the function.
  • end - function finish operator. If there is no ret operator inside, then all registers should be popped back. In case of ret d register sets to returned value. If there is no fend operator, then end of script is the end.
@tmptrash tmptrash added the enhancement New feature or request label Feb 4, 2019
@tmptrash tmptrash added this to the First beta milestone Feb 4, 2019
@tmptrash tmptrash self-assigned this Feb 4, 2019
This was referenced Feb 5, 2019
tmptrash pushed a commit that referenced this issue Feb 8, 2019
tmptrash added a commit that referenced this issue Feb 9, 2019
tmptrash added a commit that referenced this issue Feb 10, 2019
added new Config.codeDefault. From now you may set default code for every new population
fixed few issues related to preprocessing of code after mutations
from now you may set Config.orgMutationPeriod to 0 to disable it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant