fr.umlv.tatoo.cc.parser.grammar
Interface ParserTableBuilder

All Known Implementing Classes:
EBNFParserTableBuilder, ParserXMLDigester

public interface ParserTableBuilder


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.
 

Method Detail

isFatalError

boolean isFatalError()
True if the parser table builder is not complete.

Returns:
true if the parser table builder is not complete.

createParserTableDecl

ParserTableDecl createParserTableDecl(ActionDeclFactory actionFactory,
                                      TableFactoryMethod<?> method,
                                      ConflictResolverPolicy conflictResolver,
                                      AbstractConflictDiagnosticReporter reporter,
                                      File log)
Creates a parser table.

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

GrammarRepository getGrammarItemsRepository()
Return the grammar factory.

Returns:
the grammar factory.

getEBNFSupport

EBNFSupport getEBNFSupport()
Returns the EBNF support.

Returns:
the EBNF support.