case classPrimitives(nms: List[Variable]) extends Stmt with Product with Serializable
In my original Haskell implementation of ISWIM the following were
implemented as builtin primitives:
message (string) print a text message to the terminal
write (expr) write a text representation of a value to the terminal
read () read an integer from the terminal
numfields (expr) return the number of fields in a record
In this implementation, we instead intoduce a mechanism for declaring the names
of values which we assume will be constructed and pre-loaded into the environment
by the the startup pre-amble.
In my original Haskell implementation of ISWIM the following were implemented as builtin primitives:
message (string) print a text message to the terminal write (expr) write a text representation of a value to the terminal read () read an integer from the terminal numfields (expr) return the number of fields in a record
In this implementation, we instead intoduce a mechanism for declaring the names of values which we assume will be constructed and pre-loaded into the environment by the the startup pre-amble.