fr.umlv.tatoo.cc.parser.grammar
Class EBNFSupport

java.lang.Object
  extended by fr.umlv.tatoo.cc.parser.grammar.EBNFSupport

public class EBNFSupport
extends Object


Nested Class Summary
static class EBNFSupport.StarDesc
           
 
Field Summary
 boolean debug
           
 
Constructor Summary
EBNFSupport(GrammarFactory factory)
           
 
Method Summary
 NonTerminalDecl createAnonymousNonTerminal(List<? extends VariableDecl> vars, VersionDecl version)
           
 NonTerminalDecl createOptionnalNonTerminal(String id, VariableDecl element, VersionDecl version)
           
 NonTerminalDecl createStarNonTerminal(String id, VariableDecl element, Priority.Associativity assoc, VersionDecl version, boolean isStar, VariableDecl separator)
           
 Map<ProductionDecl,? extends EBNFSyntheticType> getEBNFTypeMap()
           
 Map<NonTerminalDecl,? extends EBNFSupport.StarDesc> getStarDescMap()
           
 Set<? extends NonTerminalDecl> getStarNonTerminals()
           
 void processASTEBNFType(Map<VariableDecl,Type> variableTypeMap)
           
 void processEBNFType(Map<VariableDecl,Type> variableTypeMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public boolean debug
Constructor Detail

EBNFSupport

public EBNFSupport(GrammarFactory factory)
Method Detail

getEBNFTypeMap

public Map<ProductionDecl,? extends EBNFSyntheticType> getEBNFTypeMap()

getStarDescMap

public Map<NonTerminalDecl,? extends EBNFSupport.StarDesc> getStarDescMap()

getStarNonTerminals

public Set<? extends NonTerminalDecl> getStarNonTerminals()

createAnonymousNonTerminal

public NonTerminalDecl createAnonymousNonTerminal(List<? extends VariableDecl> vars,
                                                  VersionDecl version)

createOptionnalNonTerminal

public NonTerminalDecl createOptionnalNonTerminal(String id,
                                                  VariableDecl element,
                                                  VersionDecl version)

createStarNonTerminal

public NonTerminalDecl createStarNonTerminal(String id,
                                             VariableDecl element,
                                             Priority.Associativity assoc,
                                             VersionDecl version,
                                             boolean isStar,
                                             VariableDecl separator)

processEBNFType

public void processEBNFType(Map<VariableDecl,Type> variableTypeMap)

processASTEBNFType

public void processASTEBNFType(Map<VariableDecl,Type> variableTypeMap)