|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.chalmers.cs.gf.parse.ParseDecimal
public class ParseDecimal
Parses a decimal number to the numerals abstract syntax.
Constructor Summary | |
---|---|
ParseDecimal()
|
Method Summary | |
---|---|
java.lang.String |
getName()
Get the name of this parser. |
java.util.Collection<Tree> |
parse(java.lang.String s)
Parse a string to zero or more abstract syntax trees the parsers default category. |
java.util.Collection<Tree> |
parse(java.lang.String s,
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParseDecimal()
Method Detail |
---|
public java.util.Collection<Tree> parse(java.lang.String s)
Parser
parse
in interface Parser
public java.util.Collection<Tree> parse(java.lang.String s, java.lang.String cat)
Parser
parse
in interface Parser
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".public java.lang.String getName()
Parser
getName
in interface Parser
public boolean tryThisOne()
Parser
tryThisOne
in interface Parser
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |