Var
Module
signature VAR
structure Var
:> VAR
This module defines the abstract type of program variables.
type var
val beginsWithVar : (int * Lex.tok) list -> bool
val inputLabFromLabToks : (int * Lex.tok) list -> int * var * (int * Lex.tok) list
val fromString : string -> var
val input : string -> var
val toPP : var -> PP.pp
val toString : var -> string
val output : string * var -> unit
val compare : var Sort.total_ordering
val equal : var * var -> bool
type var
beginsWithVar lts
lts
begins with a variable.
inputLabFromLabToks lts
lts
, consuming as much of lts
as possible, and returning the triple of the label in lts
of the first letter of the variable, the variable itself, and the rest of lts
. Issues an error message if this can't be done.
fromString s
s
.
input fil
fil
.
toPP v
v
.
toString v
v
to a string.
output(fil, v)
v
to the file named by fil
.
compare(v1, v2)
case Int.compare(size v1, size v2) of LESS => LESS | EQUAL => String.compare(v1, v2) | GREATER => GREATER
equal(v1, v2)
v1
and v2
are equal.
Forlan Version 4.15
Copyright © 2022 Alley Stoughton