|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Parser
Interface for all parsers from text to abstract syntax.
Method Summary | |
---|---|
java.lang.String |
getName()
Get the name of this parser. |
java.util.Collection<Tree> |
parse(java.lang.String str)
Parse a string to zero or more abstract syntax trees the parsers default category. |
java.util.Collection<Tree> |
parse(java.lang.String str,
java.lang.String cat)
Parse a string to zero or more abstract syntax trees in the given category. |
boolean |
tryThisOne()
Whether this parser should be used when trying to parse a string with different parsers. |
Method Detail |
---|
java.util.Collection<Tree> parse(java.lang.String str)
java.util.Collection<Tree> parse(java.lang.String str, java.lang.String cat)
cat
- The category to parse in. Note that the category
name given here might not be identical to the one in the GF
grammar, as the conversion to a context-free grammar can change
the category name. Typically, for non-dependent categories,
the GF source category "C" is translated to "C{}.s".java.lang.String getName()
boolean tryThisOne()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |