Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine
Ulm's Modula-2 Library:
Keywords
NAME
Keywords, DefineKey, IsKey - keyword recognition
SYNOPSIS
VAR
ok : BOOLEAN;
PROCEDURE DefineKey (string: ARRAY OF CHAR; key: INTEGER);
PROCEDURE IsKey (string: ARRAY OF CHAR; VAR key: INTEGER)
: BOOLEAN;
DESCRIPTION
DefineKey
defines a keyword
string
and assigns
a key value
key
to it.
The key value may be
redefined
by calling
DefineKey
with the
same
string
again.
IsKey
returns
TRUE
if
string
is a keyword
previously defined
with
DefineKey and sets
key
to the last
key value
defined for
string
DIAGNOSTIC
Any hash table overflow
is indicated
by
ok
=
FALSE. BUGS
At most
359 keyword with an total string length of
about 5.2 KB can be defined.
Edited by: martin, last change: 1996/12/04, revision: 1.1, converted to HTML: 1996/12/11
Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine