| java.lang.Object net.sourceforge.chaperon.process.extended.ExtendedParserAutomaton
ExtendedParserAutomaton | public class ExtendedParserAutomaton (Code) | | This class contains a automaton of states.
author: Stephan Michels version: CVS $Id: ExtendedParserAutomaton.java,v 1.3 2004/01/08 11:30:52 benedikta Exp $ |
ExtendedParserAutomaton | public ExtendedParserAutomaton(ExtendedGrammar grammar)(Code) | | Create a new automaton of states, calculated with the aid of the grammar. The constructor
calculates all state and transitions and combine all states with the same core.
Parameters: grammar - ExtendedGrammar. |
ExtendedParserAutomaton | public ExtendedParserAutomaton(ExtendedGrammar grammar, Log log)(Code) | | Create a new automaton of states, calculated with the aid of the grammar. The constructor
calculates all state and transitions and combine all states with the same core.
Parameters: grammar - ExtendedGrammar Parameters: firstsets - First sets. Parameters: log - Log, which should be used. |
addState | public State addState(State newState)(Code) | | Add a state to this automaton.
Parameters: state - State. Index of the state in the automaton. |
contains | public boolean contains(State foreignState)(Code) | | If this automaton contains the state.
Parameters: state - State, which should be found. True, if the automaton contains the state. |
indexOf | public int indexOf(State foreignState)(Code) | | Return the index of an state. If the automaton does not contain the state, then return this
method will return -1.
Parameters: state - State, which should be found. Index of the state. |
toString | public String toString()(Code) | | Return a string representation of the automaton.
String representation of the automaton. |
|
|