fa/doc/md/SHIFT.md
Ari Archer 0eef6032ad
Add execute_command.fa example and also add reset keyword
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2022-07-10 19:34:52 +03:00

20 lines
286 B
Markdown

# Shift keyword in fa
`Shift` keyword will push an incremental integer
on the stack, useful for enums
`Shift` takes no arguments
Example of the `shift` keyword:
```fa
-- Kinda enums:
macro HELLO shift end
macro BYE shift end
-- would be
macro HELLO 0 end
macro BYE 1 end
```