fr.umlv.tatoo.cc.main.main
Class EBNFParser

java.lang.Object
  extended by 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

Constructor Summary
EBNFParser()
           
 
Method Summary
static EBNFParser createEBNFParser(RuleFactory ruleFactory, Encoding encoding, GrammarFactory grammarFactory, ToolsFactory toolsFactory)
           
abstract  ParserTableBuilder parse(File source)
          Parse an EBNF file.
abstract  ParserTableBuilder parse(Reader reader)
          Parse an EBNF file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EBNFParser

public EBNFParser()
Method Detail

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)