PAC
Jump to navigation
Jump to search
PAC is an esoteric programming language, created by User:CMinusMinus, consisting of "point and click adventure" commands.
Command | Action |
---|---|
OPEN -VAR- | Create variable |
USE -VAL- WITH -VAR- | Var = Val |
TALK "Hello World" | Prints "Hello World" |
Talk -VAR- | Prints ascii value of variable |
Talk #-VAR- | Prints variable |
PUSH -VAR- | Var = Var + 1 |
PULL -VAR- | Var = var - 1 |
GIVE -VAR- | Gets User input and saves it in "Var" |
*-NAME- | Set location for goto |
WALK TO -NAME- | Goto location -name- |
TURN OFF -A- -B- | Break out of goto if "A" > "B" |
Important
Comments
Comments are initiated with a semicolon (;). They cannot be placed into code.
Variables
Variables have to be initialized. They are always integers.
Example Programs
Hello World
TALK "Hello, World!"
Cat
OPEN x GIVE x TALK x
Range 500
At a certain range, the interpreter throws a RecursionError.
OPEN max OPEN c USE 500 WITH max *start TALK #c PUSH c WALK TO start