antlr
Interface ANTLRGrammarParseBehavior

All Known Implementing Classes:
DefineGrammarSymbols

public interface ANTLRGrammarParseBehavior


Method Summary
 void abortGrammar()
           
 void beginAlt(boolean doAST_)
           
 void beginChildList()
           
 void beginExceptionGroup()
           
 void beginExceptionSpec(Token label)
           
 void beginSubRule(Token label, Token start, boolean not)
           
 void beginTree(Token tok)
           
 void defineRuleName(Token r, String access, boolean ruleAST, String docComment)
           
 void defineToken(Token tokname, Token tokliteral)
           
 void endAlt()
           
 void endChildList()
           
 void endExceptionGroup()
           
 void endExceptionSpec()
           
 void endGrammar()
           
 void endOptions()
           
 void endRule(String r)
           
 void endSubRule()
           
 void endTree()
           
 void hasError()
           
 void noASTSubRule()
           
 void oneOrMoreSubRule()
           
 void optionalSubRule()
           
 void refAction(Token action)
           
 void refArgAction(Token action)
           
 void refCharLiteral(Token lit, Token label, boolean inverted, int autoGenType, boolean lastInRule)
           
 void refCharRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)
           
 void refElementOption(Token option, Token value)
           
 void refExceptionHandler(Token exTypeAndName, Token action)
           
 void refHeaderAction(Token name, Token act)
           
 void refInitAction(Token action)
           
 void refMemberAction(Token act)
           
 void refPreambleAction(Token act)
           
 void refReturnAction(Token returnAction)
           
 void refRule(Token idAssign, Token r, Token label, Token arg, int autoGenType)
           
 void refSemPred(Token pred)
           
 void refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule)
           
 void refToken(Token assignId, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule)
           
 void refTokenRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)
           
 void refTokensSpecElementOption(Token tok, Token option, Token value)
           
 void refTreeSpecifier(Token treeSpec)
           
 void refWildcard(Token t, Token label, int autoGenType)
           
 void setArgOfRuleRef(Token argaction)
           
 void setCharVocabulary(BitSet b)
           
 void setFileOption(Token key, Token value, String filename)
           
 void setGrammarOption(Token key, Token value)
           
 void setRuleOption(Token key, Token value)
           
 void setSubruleOption(Token key, Token value)
           
 void setUserExceptions(String thr)
           
 void startLexer(String file, Token name, String superClass, String doc)
           
 void startParser(String file, Token name, String superClass, String doc)
           
 void startTreeWalker(String file, Token name, String superClass, String doc)
           
 void synPred()
           
 void zeroOrMoreSubRule()
           
 

Method Detail

abortGrammar

public void abortGrammar()

beginAlt

public void beginAlt(boolean doAST_)

beginChildList

public void beginChildList()

beginExceptionGroup

public void beginExceptionGroup()

beginExceptionSpec

public void beginExceptionSpec(Token label)

beginSubRule

public void beginSubRule(Token label,
                         Token start,
                         boolean not)

beginTree

public void beginTree(Token tok)
               throws SemanticException
SemanticException

defineRuleName

public void defineRuleName(Token r,
                           String access,
                           boolean ruleAST,
                           String docComment)
                    throws SemanticException
SemanticException

defineToken

public void defineToken(Token tokname,
                        Token tokliteral)

endAlt

public void endAlt()

endChildList

public void endChildList()

endExceptionGroup

public void endExceptionGroup()

endExceptionSpec

public void endExceptionSpec()

endGrammar

public void endGrammar()

endOptions

public void endOptions()

endRule

public void endRule(String r)

endSubRule

public void endSubRule()

endTree

public void endTree()

hasError

public void hasError()

noASTSubRule

public void noASTSubRule()

oneOrMoreSubRule

public void oneOrMoreSubRule()

optionalSubRule

public void optionalSubRule()

refAction

public void refAction(Token action)

refArgAction

public void refArgAction(Token action)

setUserExceptions

public void setUserExceptions(String thr)

refCharLiteral

public void refCharLiteral(Token lit,
                           Token label,
                           boolean inverted,
                           int autoGenType,
                           boolean lastInRule)

refCharRange

public void refCharRange(Token t1,
                         Token t2,
                         Token label,
                         int autoGenType,
                         boolean lastInRule)

refElementOption

public void refElementOption(Token option,
                             Token value)

refTokensSpecElementOption

public void refTokensSpecElementOption(Token tok,
                                       Token option,
                                       Token value)

refExceptionHandler

public void refExceptionHandler(Token exTypeAndName,
                                Token action)

refHeaderAction

public void refHeaderAction(Token name,
                            Token act)

refInitAction

public void refInitAction(Token action)

refMemberAction

public void refMemberAction(Token act)

refPreambleAction

public void refPreambleAction(Token act)

refReturnAction

public void refReturnAction(Token returnAction)

refRule

public void refRule(Token idAssign,
                    Token r,
                    Token label,
                    Token arg,
                    int autoGenType)

refSemPred

public void refSemPred(Token pred)

refStringLiteral

public void refStringLiteral(Token lit,
                             Token label,
                             int autoGenType,
                             boolean lastInRule)

refToken

public void refToken(Token assignId,
                     Token t,
                     Token label,
                     Token args,
                     boolean inverted,
                     int autoGenType,
                     boolean lastInRule)

refTokenRange

public void refTokenRange(Token t1,
                          Token t2,
                          Token label,
                          int autoGenType,
                          boolean lastInRule)

refTreeSpecifier

public void refTreeSpecifier(Token treeSpec)

refWildcard

public void refWildcard(Token t,
                        Token label,
                        int autoGenType)

setArgOfRuleRef

public void setArgOfRuleRef(Token argaction)

setCharVocabulary

public void setCharVocabulary(BitSet b)

setFileOption

public void setFileOption(Token key,
                          Token value,
                          String filename)

setGrammarOption

public void setGrammarOption(Token key,
                             Token value)

setRuleOption

public void setRuleOption(Token key,
                          Token value)

setSubruleOption

public void setSubruleOption(Token key,
                             Token value)

startLexer

public void startLexer(String file,
                       Token name,
                       String superClass,
                       String doc)

startParser

public void startParser(String file,
                        Token name,
                        String superClass,
                        String doc)

startTreeWalker

public void startTreeWalker(String file,
                            Token name,
                            String superClass,
                            String doc)

synPred

public void synPred()

zeroOrMoreSubRule

public void zeroOrMoreSubRule()


Copyright 1999-2003 Oliver Zeigermann. All Rights Reserved.