fr.umlv.tatoo.cc.main.main
Class EBNFParser
java.lang.Object
fr.umlv.tatoo.cc.main.main.EBNFParser
- Direct Known Subclasses:
- EBNFParserImpl
public abstract class EBNFParser
- extends Object
Interface used to de-couple MainBatch from ebnf package.
- Author:
- Remi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EBNFParser
public EBNFParser()
parse
public abstract ParserTableBuilder parse(File source)
throws IOException
- Parse an EBNF file.
- Parameters:
source
- the EBNF file.
- Returns:
- an object that implements ParserTableBuilder interface.
- Throws:
IOException
- raised if an input error occurs.
parse
public abstract ParserTableBuilder parse(Reader reader)
- Parse an EBNF file.
- Parameters:
reader
- the EBNF file reader.
- Returns:
- an object that implements ParserTableBuilder interface.
createEBNFParser
public static EBNFParser createEBNFParser(RuleFactory ruleFactory,
Encoding encoding,
GrammarFactory grammarFactory,
ToolsFactory toolsFactory)