Generic Interpreter 1.3
Private API

gi
Class LR0_Grammar.Context

java.lang.Object
  extended by gi.Grammar.Production
      extended by gi.LR0_Grammar.Context
Direct Known Subclasses:
LR1_Grammar.Context
Enclosing class:
LR0_Grammar

static class LR0_Grammar.Context
extends Grammar.Production

This class implements an LR(0) Context.

Version:
1.3
Author:
© 1999-2009 Craig A. Rich <carich@csupomona.edu>

Field Summary
(package private)  int lookahead
          The lookahead position in this LR(0) Context.
 
Fields inherited from class gi.Grammar.Production
A, beta, serial
 
Constructor Summary
LR0_Grammar.Context(Grammar.Production p, int lookahead)
          Constructs an LR(0) Context.
 
Method Summary
 boolean equals(Object o)
           
 String toString()
          Returns the string representation of this LR(0) Context.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lookahead

int lookahead

The lookahead position in this LR(0) Context.

Constructor Detail

LR0_Grammar.Context

LR0_Grammar.Context(Grammar.Production p,
                    int lookahead)

Constructs an LR(0) Context.

Parameters:
p - the Production in this Context.
lookahead - the lookahead position in this Context.
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Grammar.Production

toString

public String toString()

Returns the string representation of this LR(0) Context.

Overrides:
toString in class Grammar.Production
Returns:
the string representation of this Context.

 

© 1999-2009 Craig A. Rich <carich@csupomona.edu>