Class InfoNFA

java.lang.Object
  extended byNFA
      extended byInfoNFA

public class InfoNFA
extends NFA

An extension of the class NFA in which the states carry an information which is an integer (used for LR analysis)..


Field Summary
 int[] info
           
 int terminal
           
 
Constructor Summary
InfoNFA(int n)
           
InfoNFA(int n, Alphabet a)
          Creates an NFA with n states on the alphabet a.
 
Method Summary
 InfoDFA toInfoDFA()
          Implements the determinization algorithm.
 
Methods inherited from class NFA
closure, closure, count, explore, explore2, main, next, toDFA, toDFA2, toDFA3, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

info

public int[] info

terminal

public int terminal
Constructor Detail

InfoNFA

public InfoNFA(int n)

InfoNFA

public InfoNFA(int n,
               Alphabet a)
Creates an NFA with n states on the alphabet a.

Method Detail

toInfoDFA

public InfoDFA toInfoDFA()
                  throws java.lang.Exception
Implements the determinization algorithm.

Throws:
java.lang.Exception