Object-oriented Parser System
v3.6

Serialized Form


Package gl

Class Gl.Tree extends Object implements Serializable

Class Gl.Tree.Add extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.AndIf extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Assign extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Deref extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Div extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Eq extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Ge extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Gt extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Guard extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Le extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Lit extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Loop extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Lt extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Mul extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Ne extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.OrIf extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Print extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Rem extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Select extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Stmt extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Sub extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.Var extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Gl.Tree.With extends AbstractList implements Serializable

Serialized Fields

position

int position
associated input position.


nodes

Object[] nodes
mutable body.

Class Tree extends Gl.Tree implements Serializable

Class Tree.Add extends Gl.Tree.Add implements Serializable

Class Tree.AndIf extends Gl.Tree.AndIf implements Serializable

Class Tree.Assign extends Gl.Tree.Assign implements Serializable

Class Tree.Deref extends Gl.Tree.Deref implements Serializable

Class Tree.Div extends Gl.Tree.Div implements Serializable

Class Tree.Eq extends Gl.Tree.Eq implements Serializable

Class Tree.Ge extends Gl.Tree.Ge implements Serializable

Class Tree.Gt extends Gl.Tree.Gt implements Serializable

Class Tree.Le extends Gl.Tree.Le implements Serializable

Class Tree.Lit extends Gl.Tree.Lit implements Serializable

Class Tree.Loop extends Gl.Tree.Loop implements Serializable

Class Tree.Lt extends Gl.Tree.Lt implements Serializable

Class Tree.Mul extends Gl.Tree.Mul implements Serializable

Class Tree.Ne extends Gl.Tree.Ne implements Serializable

Class Tree.OrIf extends Gl.Tree.OrIf implements Serializable

Class Tree.Print extends Gl.Tree.Print implements Serializable

Class Tree.Rem extends Gl.Tree.Rem implements Serializable

Class Tree.Select extends Gl.Tree.Select implements Serializable

Class Tree.Sub extends Gl.Tree.Sub implements Serializable

Class Tree.With extends Gl.Tree.With implements Serializable


Package mops

Class Mops.Blank extends MopsParser.Blank implements Serializable

Class Mops.Jsm extends MopsParser.Jsm implements Serializable

Class Mops.Monad extends MopsParser.Monad implements Serializable

Class Mops.Mvalue extends MopsParser.Mvalue implements Serializable

Class Mops.Mvalues extends MopsParser.Mvalues implements Serializable

Class Mops.Paren extends MopsParser.Paren implements Serializable

Class Mops.Text extends MopsParser.Text implements Serializable

Class Mops.Trees extends MopsParser.Trees implements Serializable

Class MopsParser.Blank extends Node implements Serializable

Class MopsParser.Jsm extends Node implements Serializable

Class MopsParser.Monad extends Node implements Serializable

Class MopsParser.Mvalue extends Node implements Serializable

Class MopsParser.Mvalues extends Node implements Serializable

Class MopsParser.Paren extends Node implements Serializable

Class MopsParser.Text extends Node implements Serializable

Class MopsParser.Trees extends Node implements Serializable

Class Node extends ArrayList implements Serializable

Serialized Fields

lineNo

int lineNo

Class ParserException extends Exception implements Serializable

Class Tree.Add extends Node implements Serializable

Class Tree.Div extends Node implements Serializable

Class Tree.Leaf extends Node implements Serializable

Class Tree.Mul extends Node implements Serializable

Class Tree.Sub extends Node implements Serializable


Package oops3

Class Parser extends Object implements Serializable

Serialized Fields

prolog

String prolog
prolog and epilog code.


epilog

String epilog
prolog and epilog code.


literals

Map<K,V> literals
collects Literal strings. These strings are unique and should take precedence over Parser.patterns in the scanner.


patterns

Parser.Pattern[] patterns
one Pattern per Token name in order of definition. There might be more for macros (untyped) and skips (void).


rules

Parser.Rule[] rules
one Rule per Nonterminal name in order of definition. The first one is the start symbol of the grammar.


start

int start
index of start symbol in Parser.rules.


lookaheads

BitSet[] lookaheads
lookahead sets: Each list element denotes a set of symbols which is the lookahead for a Node. Pattern contains a symbol value which the scanner must generate for a matching token. Literal contains a symbol value which the scanner must generate for the literal. Each Node contains an index into this list; the index also identifies the follow set in Follow. The list can be computed by Lookahead or read as a resource.

Class Parser.And extends Parser.Permute implements Serializable

Class Parser.AndList extends Parser.PermutedList implements Serializable

Class Parser.Binding extends Parser.Node implements Serializable

Serialized Fields

name

String name
unique name.


type

Parser.Type type
type. Can be null (e.g., for a macro pattern) or [vV]oid (e.g., for a skipping pattern).

See Also:
Parser.Binding.noType()

value

Object value
value, might be set later.

Class Parser.Delimit extends Parser.Repeat implements Serializable

Serialized Fields

delimiter

Parser.Node delimiter

Class Parser.Group extends Parser.Node implements Serializable

Serialized Fields

nodes

Parser.Node[] nodes
descendants

Class Parser.Literal extends Parser.Terminal implements Serializable

Serialized Fields

value

String value
the literal value, internalized.


symbol

int symbol
the numerical encoding.

Class Parser.Node extends AbstractList<Parser.Node> implements Serializable

Serialized Fields

position

int position
position associated with node. This is only changed in Rule.init after a forward declaration.


lookahead

int lookahead
references Parser.lookaheads.

Class Parser.Nonterminal extends Parser.Node implements Serializable

Serialized Fields

rule

int rule
references Parser.rules.

Class Parser.Or extends Parser.Permute implements Serializable

Class Parser.OrList extends Parser.PermutedList implements Serializable

Class Parser.Pattern extends Parser.Binding<String> implements Serializable

Serialized Fields

symbol

int symbol
the numerical encoding.

Class Parser.Permute extends Parser.Xor implements Serializable

Serialized Fields

min

int[] min
range for each alternative.


max

int[] max
range for each alternative.

Class Parser.PermutedList extends Parser.Permute implements Serializable

Serialized Fields

delimiter

Parser.Node delimiter

Class Parser.Repeat extends Parser.Group implements Serializable

Serialized Fields

min

int min
repeat range.


max

int max
repeat range.

Class Parser.Rule extends Parser.Binding<Parser.Node> implements Serializable

Class Parser.Sequence extends Parser.Group implements Serializable

Class Parser.Terminal extends Parser.Node implements Serializable

Class Parser.Token extends Parser.Terminal implements Serializable

Serialized Fields

pattern

int pattern
references Parser.patterns.

Class Parser.Type extends Object implements Serializable

Serialized Fields

name

String name
class name (or void); empty string to indicate left-associative build.


interfaces

String[] interfaces
interface names.


flatten

boolean flatten
true if factory method can squeeze this out in favor of a single descendant.

Class Parser.Xor extends Parser.Group implements Serializable



(c) 2008 Axel T. Schreiner