net.sf.parser4j.parser.entity.parsestate
Interface IParseState
- All Superinterfaces:
- java.lang.Iterable<ParseStack>
- All Known Implementing Classes:
- AbstractParseState, LexParseState, SyntaxParseState
public interface IParseState
- extends java.lang.Iterable<ParseStack>
parse state is a set of ParseStack
merge when add existing parse stack ( create alternative for ambiguous
grammar)
- Author:
- luc peuvrier
Methods inherited from interface java.lang.Iterable |
iterator |
add
boolean add(ParseStack parseStack)
throws ParserException,
HasAmbiguityParserException
- Parameters:
parseStack
-
- Returns:
- true if added, else it is an alternative to existing ( ambiguous)
- Throws:
ParserException
HasAmbiguityParserException
- reject ambiguity
remove
boolean remove(ParseStack parseStack)
clear
void clear()
- clear the parser stack set
isEmpty
boolean isEmpty()
size
int size()
toArray
ParseStack[] toArray()
- Returns:
- parse stack set in array
Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.