PAC is an esoteric programming language, created by User:CMinusMinus, consisting of "point and click adventure" commands.
|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"|
Comments are initiated with a semicolon (;). They cannot be placed into code.
Variables have to be initialized. They are always integers.
TALK "Hello, World!"
OPEN x GIVE x TALK x
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
Everyone is free to sign!