Go to the first, previous, next, last section, table of contents.


internal_types (library)

Author(s): Göran Smedbäck.

Version: 1.10#7 (2006/4/26, 19:22:13 CEST)

Version of last change: 1.9#177 (2003/12/4, 17:48:37 CET)

These are the internal data types used in the predicates. They are only used to simplify this documentation and make it more understandable. Implemented by Göran Smedbäck

Usage and interface (internal_types)

Documentation on exports (internal_types)

REGTYPE: bound/1:

Min is a number or an atom that indicates the minimal value, Max indicates the maximal.

bound(bound(Min,Max)) :-
        atm(Min),
        atm(Max).

Usage: bound(Bound)

REGTYPE: bound_double/1:

Min is a number or an atom that indicates the minimal value, Max indicates the maximal. The first two for some value and the second pair for some other. Typically used for types that are compound, e.g., rotationvalue.

bound_double(bound(Min0,Max0,Min1,Max1)) :-
        atm(Min0),
        atm(Max0),
        atm(Min1),
        atm(Max1).

Usage: bound_double(Bound)

REGTYPE: dictionary/1:

Dic is a tree structure and is used as the internal representation of the dictionary.

dictionary(dic(Dic)) :-
        tree(Dic).

Usage: dictionary(Dictionary)

REGTYPE: environment/1:

EnvironmentType one of 'DEF','PROTO','EXTERNPROTO' with the name Name. Whitespace is a structure with whitespace information.

environment(env(Env,Name,WhiteSpace)) :-
        atm(Env),
        atm(Name),
        whitespace(WhiteSpace).

Usage: environment(Environment)

REGTYPE: parse/1:

In is the list of tokens to parse and Out is the resulting list after the parsing. Env is of type env and is the environment-structure.The dictinonary Dic contains created information and structures.

parse(parse(In,Out,Env,Dic)) :-
        list(In),
        list(Out),
        environment(Env),
        dictionary(Dic).

Usage: parse(Parse)

REGTYPE: tree/1:

Key is the search-key, Leaf is the information, Left and Right are more dictionary posts, where Left have less Key-value.

tree(tree(Key,Leaf,Left,Right)) :-
        atm(Key),
        leaf(Leaf),
        tree(Left),
        tree(Right).

Usage: tree(Tree)

REGTYPE: whitespace/1:

The Row and Indentation information. The row information used when parsing the VRML code to give accurate error position and the indentation is used when generating VRML code from terms.

whitespace(w(Row,Indentation)) :-
        number(Row),
        number(Indentation).

Usage: whitespace(Whitespace)


Go to the first, previous, next, last section, table of contents.