Flippant
Jump to navigation
Jump to search
Flippant is a language based on inserting substrings and printing characters.
Syntax
Flippant is based on a string and a list of steps. The steps are implicit.
Commands
| Command | Purpose |
|---|---|
| p | Print the string and go to the next step. |
| d(x,y) | Delete all characters starting from the xth character and ending at the yth character(inclusive) and go to the next step. If there are no characters left, it halts via a syntax error. |
| f(x,y) | Insert the string beginning at the xth character to the yth character to the beginning of the string and go to the next step. |
| a(x) | Set position x of the string as the ASCII value of that position and go to the next step. |
| s(x) | Go to step x. |
| h | Halt |