= = = iPAD GRAY SNAIL = = =

Enter iPad Gray Snail code in the box below, then click the compile button. Your code will be converted into JavaScript so it may be interpreted more quickly. The compiler checks for syntax errors incase you make a mistake.




= COMMANDS =

iPad Gray Snail is designed for easy development on the iPad. The language uses fewer kinds of punctuation and is not case sensitive. There are still 4 commands, but for efficiency of typing, each command is 1 character long:

P (var name 1), (var name 2), (string): Pops the first character from the string, then stores the character in var 1 and the rest of the string in var 2.

G (label name), (string 1), (string 2): If the two given strings are equal, then command execution skips to the given label.

I (var name): Halts execution until the user enters a string. The user input is stored in the given var.

O (string): Outputs the given string.

= SYNTAX =

Each command name is followed by a space and then a set of arguments. The arguments are each separated by a comma and a space (). More than one command may be placed on the same line by separation with periods and spaces ().

By default, all arguments given are strings. No quotation marks should be put around them.

To call a var, place question marks (?) immediately before and after the var name. String concatenation occurs without the addition symbol.

Comments are surrounded by exclamation points (!) and may span many lines.

To cancel the functionality of a comma, period, question mark, or exclamation point, a forward slash (/) is placed before the symbol. The slash itself may be cancelled with another slash.

When an unfamiliar command name is encountered by the compiler, it is interpreted as a label. Labels mark a location in the code and may contain spaces. Labels are utilized by the G command.

Return to Old Compiler

Return to the Ostracod Pond