Instance Constructors
-
new
Primitives
(nms: List[Variable])
Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
->
[T, U]
(a: (T) ⇒ U)(implicit b: (Primitives.this.type) ⇒ T): U
-
def
->
[U]
(a: (Primitives.this.type) ⇒ U): U
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
asInstanceOf
[T0]
: T0
-
def
canEqual
(arg0: Any): Boolean
-
def
children
: Iterator[Attributable]
-
def
clone
(): Attributable
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
firstChild
[T]
: T
-
def
getClass
(): java.lang.Class[_]
-
def
hasChildren
: Boolean
-
def
hashCode
(): Int
-
var
index
: Int
-
def
initTreeProperties
(): Unit
-
def
isFirst
: Boolean
-
def
isInstanceOf
[T0]
: Boolean
-
def
isLast
: Boolean
-
def
isRoot
: Boolean
-
def
lastChild
[T]
: T
-
def
ne
(arg0: AnyRef): Boolean
-
def
next
[T]
: T
-
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
parent
[T]
: T
-
var
parent
: Attributable
-
var
pos
: Position
-
def
prev
[T]
: T
-
def
productArity
: Int
-
def
productElement
(arg0: Int): Any
-
def
productIterator
: Iterator[Any]
-
def
productPrefix
: String
-
def
setPos
(newpos: Position): Primitives.this.type
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Deprecated Value Members
-
def
productElements
: Iterator[Any]
Inherited from Serializable
Inherited from Serializable
Inherited from Positional
Inherited from Attributable
Inherited from Cloneable
Inherited from Product
Inherited from Equals
Inherited from AnyRef
Inherited from Any
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.