1 package persistence.antlr; 2 3 8 9 import persistence.antlr.collections.impl.BitSet; 10 11 public interface ANTLRGrammarParseBehavior { 12 public void abortGrammar(); 13 14 public void beginAlt(boolean doAST_); 15 16 public void beginChildList(); 17 18 public void beginExceptionGroup(); 20 21 public void beginExceptionSpec(Token label); 22 23 public void beginSubRule(Token label, Token start, boolean not); 24 25 public void beginTree(Token tok) throws SemanticException; 27 28 public void defineRuleName(Token r, String access, boolean ruleAST, String docComment) throws SemanticException; 29 30 public void defineToken(Token tokname, Token tokliteral); 31 32 public void endAlt(); 33 34 public void endChildList(); 35 36 public void endExceptionGroup(); 37 38 public void endExceptionSpec(); 39 40 public void endGrammar(); 41 42 public void endOptions(); 43 44 public void endRule(String r); 45 46 public void endSubRule(); 47 48 public void endTree(); 49 50 public void hasError(); 51 52 public void noASTSubRule(); 53 54 public void oneOrMoreSubRule(); 55 56 public void optionalSubRule(); 57 58 public void refAction(Token action); 59 60 public void refArgAction(Token action); 61 62 public void setUserExceptions(String thr); 63 64 public void refCharLiteral(Token lit, Token label, boolean inverted, int autoGenType, boolean lastInRule); 65 66 public void refCharRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule); 67 68 public void refElementOption(Token option, Token value); 69 70 public void refTokensSpecElementOption(Token tok, Token option, Token value); 71 72 public void refExceptionHandler(Token exTypeAndName, Token action); 73 74 public void refHeaderAction(Token name, Token act); 75 76 public void refInitAction(Token action); 77 78 public void refMemberAction(Token act); 79 80 public void refPreambleAction(Token act); 81 82 public void refReturnAction(Token returnAction); 83 84 public void refRule(Token idAssign, Token r, Token label, Token arg, int autoGenType); 85 86 public void refSemPred(Token pred); 87 88 public void refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule); 89 90 public void refToken(Token assignId, Token t, Token label, Token args, 91 boolean inverted, int autoGenType, boolean lastInRule); 92 93 public void refTokenRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule); 94 95 public void refTreeSpecifier(Token treeSpec); 97 98 public void refWildcard(Token t, Token label, int autoGenType); 99 100 public void setArgOfRuleRef(Token argaction); 101 102 public void setCharVocabulary(BitSet b); 103 104 public void setFileOption(Token key, Token value, String filename); 106 107 public void setGrammarOption(Token key, Token value); 108 109 public void setRuleOption(Token key, Token value); 110 111 public void setSubruleOption(Token key, Token value); 112 113 public void startLexer(String file, Token name, String superClass, String doc); 114 115 public void startParser(String file, Token name, String superClass, String doc); 117 118 public void startTreeWalker(String file, Token name, String superClass, String doc); 119 120 public void synPred(); 121 122 public void zeroOrMoreSubRule(); 123 } 124 | Popular Tags |