1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2024-07-10 15:28:56 +00:00
SixtyPical/eg/new-style-routine.60p
2018-02-08 15:05:37 +00:00

23 lines
348 B
Plaintext

// SixtyPical 0.11 introduced a new syntax for defining routines
// (routine was made into a type, and you can now say: define name type.)
typedef routine
inputs x
outputs x
trashes z, n
routine_type
vector routine_type vec
define foo routine_type
{
inc x
}
define main routine
outputs vec
trashes a, z, n
{
copy foo, vec
}