Printscript 9
Printscript 9 is invented by User:A.
New Syntax
Loops are added. However, there is a problem.
Check out the example program:
set a 1 while a print "a" end
Output:
This program prints many 'a' s.
Now the Cat program and the Truth-machine can be implemented:
set a 1 while a input b print b end
Truth Machine:
input a print a while a print a end
but they are still in beta.
However, Version 10 fixes this. Maybe this is very close to being general-purpose.
Printscript 11 adds 2 functions: pint and inc. inc increments the first value by the second parameter. pint prints an integer instead of a character.
-pint example set a ! pint a
Output:
33
-inc example set a ! inc a ! pint a
Output:
66
This version also extends the print function. The symbol ".." can be used to print various things.
- .. example print "This " .. "string" -or print " is ".."linked."
Output:
This string is linked.
Printscript version 12 completes the arithematic functions: add, sub, mul, div, and mod.
Mod is the remainder when a number is divided by another one.
These are similar to the add function, so examples are not necessary.
Implementation
Version 9 Version 10 Version 11 Version 12