-
Notifications
You must be signed in to change notification settings - Fork 93
Code Instructions
This page introduces instructions for :code
and :exec
.
Codemaker pops an item from a specific stack and push it into the code stack. Codemaker is a high level function which is used to construct push instructions code_fromboolean
, code_fromfloat
, code_frominteger
and code-quote
, which moves an item from :exec
to :code
.
Instruction | Explanation | input | output |
---|---|---|---|
|
Append the first 2 items in |
|
|
|
If the first item in |
|
|
|
Perform |
|
|
|
Perform |
|
|
|
Concatenate the second item of |
|
|
|
Wrap up the first item of |
|
|
|
List the first two items of |
|
|
|
Get the length of the first item of |
|
|
|
Maps the first item of |
|
|
|
Whether the second item in |
|
|
|
Get the nth (mod the length of code) from a piece of code |
|
|
|
Delete all instructions before the nth (mod the length of code) |
|
|
|
Determine whether the first item in |
|
|
|
Use |
|
|
|
Insert a piece of code into another by |
|
|
|
To name the first, second and third items from |
|
|
|
Exam whether the second code item contains the first one as its subtree or not |
|
|
|
Returns the smallest subtree of the first item which contains the second item. |
|
|
|
Get the position in which the second code item appears in the first one. -1 if no appearance is found. |
|
|
instruction | explanation |
---|---|
|
execute the code (by pushing both it and code_popper to |
|
execute the code (by popping it and pushing to |
|
While the counter moves from the second item of |
|
similar to |
|
Execute the first item of |
|
similar to |
|
If the first item in |
|
true → run the fist one from |
|
first item from |