org.globus.cog.karajan.parser
Class Grammar
java.lang.Object
org.globus.cog.karajan.parser.Grammar
public class Grammar
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Grammar
public Grammar(String grammarFileName,
AtomMapping mapping)
load
public final void load(String file)
parse
public ParseTree parse(Lexer lexer)
throws ParsingException
- Throws:
ParsingException
parseWithContext
public ParserContext parseWithContext(Lexer lexer)
throws ParsingException
- Throws:
ParsingException
parse
public ParseTree parse(String expr)
throws ParsingException
- Throws:
ParsingException
parseWithContext
public ParserContext parseWithContext(String expr)
throws ParsingException
- Throws:
ParsingException