fr.umlv.tatoo.cc.ebnf
Class EBNFParserTableBuilder

java.lang.Object
  extended by fr.umlv.tatoo.cc.ebnf.EBNFParserTableBuilder
All Implemented Interfaces:
ParserTableBuilder

public class EBNFParserTableBuilder
extends Object
implements ParserTableBuilder


Constructor Summary
EBNFParserTableBuilder(GrammarFactory grammarFactory, EBNFSupport ebnfSupport, boolean isFatalError)
           
 
Method Summary
 ParserTableDecl createParserTableDecl(ActionDeclFactory actionFactory, TableFactoryMethod<?> method, ConflictResolverPolicy conflictResolver, AbstractConflictDiagnosticReporter reporter, File log)
          Creates a parser table.
 EBNFSupport getEBNFSupport()
          Returns the EBNF support.
 GrammarRepository getGrammarItemsRepository()
          Return the grammar factory.
 boolean isFatalError()
          True if the parser table builder is not complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EBNFParserTableBuilder

public EBNFParserTableBuilder(GrammarFactory grammarFactory,
                              EBNFSupport ebnfSupport,
                              boolean isFatalError)
Method Detail

createParserTableDecl

public ParserTableDecl createParserTableDecl(ActionDeclFactory actionFactory,
                                             TableFactoryMethod<?> method,
                                             ConflictResolverPolicy conflictResolver,
                                             AbstractConflictDiagnosticReporter reporter,
                                             File log)
Description copied from interface: ParserTableBuilder
Creates a parser table.

Specified by:
createParserTableDecl in interface ParserTableBuilder
Parameters:
actionFactory - a factory that numbering actions by type (shift, reduce etc.)
method - the method used to create the table SLR, LR, LALR.
conflictResolver - the conflict resolver.
reporter - the conflict reporter used to report conflicts
log - the log file or null.
Returns:
a parser table.

getGrammarItemsRepository

public GrammarRepository getGrammarItemsRepository()
Description copied from interface: ParserTableBuilder
Return the grammar factory.

Specified by:
getGrammarItemsRepository in interface ParserTableBuilder
Returns:
the grammar factory.

getEBNFSupport

public EBNFSupport getEBNFSupport()
Description copied from interface: ParserTableBuilder
Returns the EBNF support.

Specified by:
getEBNFSupport in interface ParserTableBuilder
Returns:
the EBNF support.

isFatalError

public boolean isFatalError()
Description copied from interface: ParserTableBuilder
True if the parser table builder is not complete.

Specified by:
isFatalError in interface ParserTableBuilder
Returns:
true if the parser table builder is not complete.