| java.lang.Object net.sourceforge.chaperon.process.LexicalAutomaton
LexicalAutomaton | public class LexicalAutomaton implements Serializable(Code) | | The lexical automaton holds all automata for the the lexemes of a lexicon.
author: Stephan Michels version: CVS $Id: LexicalAutomaton.java,v 1.3 2003/12/09 19:55:53 benedikta Exp $ |
Constructor Summary | |
public | LexicalAutomaton(int lexemecount) Create a lexical automaton. |
LexicalAutomaton | public LexicalAutomaton(int lexemecount)(Code) | | Create a lexical automaton.
Parameters: lexemecount - Count of lexemes. |
getLexemeCount | public int getLexemeCount()(Code) | | Return the count of lexemes.
Count of lexemes. |
getLexemeDefinition | public PatternAutomaton getLexemeDefinition(int index)(Code) | | Returns the pattern automaton for a lexeme.
Parameters: index - Index of the lexeme. Pattern automaton. |
getLexemeSymbol | public String getLexemeSymbol(int index)(Code) | | Returns the name of a terminal symbol
Parameters: index - Index of the lexeme. Name of the symbol. |
setLexemeDefinition | public void setLexemeDefinition(int index, PatternAutomaton definition)(Code) | | Sets the pattern automaton for a lexeme
Parameters: index - Index of the lexeme. Parameters: definition - Pattern automaton. |
setLexemeSymbol | public void setLexemeSymbol(int index, String symbol)(Code) | | Sets the name of a terminal symbol.
Parameters: index - Index of the lexeme. Parameters: symbol - Name of the symbol. |
|
|