Oberon || Library || Module Index || Search Engine || Definition || Module


Ulm's Oberon Library:
StrListArgs


NAME

StrListArgs - arguments of type list of strings

SYNOPSIS

TYPE Member = POINTER TO MemberRec;
TYPE MemberRec =
      RECORD
         string: ConstStrings.String;
         next: Member;
      END;
TYPE Value = POINTER TO ValueRec;
TYPE ValueRec =
      RECORD
         (Args.ValueRec)
         head, tail: Member;
      END;
VAR type: Args.Type;


PROCEDURE Create(VAR value: Args.Value; it: Iterators.Iterator);

DESCRIPTION

StrListArgs implements a list of strings argument type for Args. Strings are represented as ConstStrings.String and chained through Member nodes. The linear list of strings is represented by a Value node where head and tail point to the first and the last member node, respectively.

Create iterates through all elements accessible through it, filters out objects that are extensions of ConstStrings.String and inserts them in the given order into the linear list represented by value.

SEE ALSO

Args
general abstraction for arguments
ConstStrings
constant strings of arbitrary length

Edited by: borchert, last change: 2005/08/24, revision: 1.1, converted to HTML: 2005/08/24

Oberon || Library || Module Index || Search Engine || Definition || Module