/external/antlr/tool/src/main/java/org/antlr/analysis/ |
D | SemanticContext.java | 59 public abstract class SemanticContext { class 65 …public static final SemanticContext EMPTY_SEMANTIC_CONTEXT = new Predicate(Predicate.INVALID_PRED_… 71 public abstract SemanticContext getGatedPredicateContext(); in getGatedPredicateContext() 87 public static class Predicate extends SemanticContext { 215 public SemanticContext getGatedPredicateContext() { in getGatedPredicateContext() 306 public static abstract class CommutativePredicate extends SemanticContext { 307 protected final Set<SemanticContext> operands = new HashSet<SemanticContext>(); 310 public CommutativePredicate(SemanticContext a, SemanticContext b) { in CommutativePredicate() 328 public CommutativePredicate(HashSet<SemanticContext> contexts){ in CommutativePredicate() 329 for (SemanticContext context : contexts){ in CommutativePredicate() [all …]
|
D | NFAToDFAConverter.java | 162 SemanticContext.EMPTY_SEMANTIC_CONTEXT, in computeStartState() 172 SemanticContext.EMPTY_SEMANTIC_CONTEXT, in computeStartState() 594 SemanticContext semanticContext, in closure() 717 SemanticContext labelContext = transition0.label.getSemanticContext(); in closure() 731 SemanticContext newSemanticContext = semanticContext; in closure() 752 SemanticContext.and(semanticContext, labelContext); in closure() 1006 SemanticContext gatedPreds = d.getGatedPredicatesInNFAConfigurations(); in convertToAcceptState() 1007 SemanticContext existingStateGatedPreds = in convertToAcceptState() 1355 Map<Integer, SemanticContext> altToPredMap = in tryToResolveWithSemanticPredicates() 1387 SemanticContext nakedAltPred; in tryToResolveWithSemanticPredicates() [all …]
|
D | LL1Analyzer.java | 326 SemanticContext ctx = transition0.label.getSemanticContext(); in _detectConfoundingPredicates() 327 SemanticContext.Predicate p = (SemanticContext.Predicate)ctx; in _detectConfoundingPredicates() 393 public SemanticContext getPredicates(NFAState altStartState) { in getPredicates() 398 protected SemanticContext _getPredicates(NFAState s, NFAState altStartState) { in _getPredicates() 422 SemanticContext p = null; in _getPredicates() 423 SemanticContext p0; in _getPredicates() 424 SemanticContext p1 = null; in _getPredicates() 429 if ( ((SemanticContext.Predicate)p).predicateAST.getType() == in _getPredicates() 447 return SemanticContext.and(p,SemanticContext.or(p0,p1)); in _getPredicates()
|
D | LL1DFA.java | 131 SemanticContext.Predicate synpred = in LL1DFA() 134 synpred = new SemanticContext.TruePredicate(); in LL1DFA() 155 protected SemanticContext.Predicate getSynPredForAlt(NFAState decisionStartState, in getSynPredForAlt() 165 SemanticContext ctx = altStartState.transition[0].label.getSemanticContext(); in getSynPredForAlt() 167 SemanticContext.Predicate p = (SemanticContext.Predicate)ctx; in getSynPredForAlt() 176 return (SemanticContext.Predicate)altStartState.transition[0].label.getSemanticContext(); in getSynPredForAlt()
|
D | PredicateLabel.java | 39 protected SemanticContext semanticContext; 44 this.semanticContext = new SemanticContext.Predicate(predicateASTNode); in PredicateLabel() 48 public PredicateLabel(SemanticContext semCtx) { in PredicateLabel() 78 public SemanticContext getSemanticContext() { in getSemanticContext()
|
D | DFAState.java | 236 if ( c.semanticContext!=SemanticContext.EMPTY_SEMANTIC_CONTEXT ) { in addNFAConfiguration() 265 SemanticContext semanticContext) in addNFAConfiguration() 660 public Set<? extends SemanticContext> getGatedSyntacticPredicatesInNFAConfigurations() { in getGatedSyntacticPredicatesInNFAConfigurations() 662 Set<SemanticContext> synpreds = new HashSet<SemanticContext>(); in getGatedSyntacticPredicatesInNFAConfigurations() 665 SemanticContext gatedPredExpr = in getGatedSyntacticPredicatesInNFAConfigurations() 706 public SemanticContext getGatedPredicatesInNFAConfigurations() { in getGatedPredicatesInNFAConfigurations() 707 SemanticContext unionOfPredicatesFromAllAlts = null; in getGatedPredicatesInNFAConfigurations() 711 SemanticContext gatedPredExpr = in getGatedPredicatesInNFAConfigurations() 730 SemanticContext.or(unionOfPredicatesFromAllAlts,gatedPredExpr); in getGatedPredicatesInNFAConfigurations() 734 if ( unionOfPredicatesFromAllAlts instanceof SemanticContext.TruePredicate ) { in getGatedPredicatesInNFAConfigurations()
|
D | NFAConfiguration.java | 57 public SemanticContext semanticContext = SemanticContext.EMPTY_SEMANTIC_CONTEXT; 92 SemanticContext semanticContext) in NFAConfiguration() 142 semanticContext!=SemanticContext.EMPTY_SEMANTIC_CONTEXT ) { in toString()
|
D | DecisionProbe.java | 103 protected Map<DFAState, Map<Integer,SemanticContext>> stateToAltSetWithSemanticPredicatesMap = 104 new HashMap<DFAState, Map<Integer,SemanticContext>>(); 387 public SemanticContext getSemanticContextForAlt(DFAState d, int alt) { in getSemanticContextForAlt() 388 Map<Integer, SemanticContext> altToPredMap = stateToAltSetWithSemanticPredicatesMap.get(d); in getSemanticContextForAlt() 686 …public void reportAltPredicateContext(DFAState d, Map<Integer, ? extends SemanticContext> altPredi… in reportAltPredicateContext() 687 Map<Integer, SemanticContext> copy = new HashMap<Integer, SemanticContext>(); in reportAltPredicateContext()
|
D | DFA.java | 834 SemanticContext ctx = t.label.getSemanticContext(); 858 SemanticContext ctx = t.label.getSemanticContext(); 988 Set<? extends SemanticContext> synpreds = a.getGatedSyntacticPredicatesInNFAConfigurations(); 991 for (SemanticContext semctx : synpreds) {
|
D | Label.java | 231 public SemanticContext getSemanticContext() { in getSemanticContext()
|
/external/antlr/tool/src/main/java/org/antlr/tool/ |
D | FASerializer.java | 168 SemanticContext preds = in walkSerializingFA()
|
D | DOTGenerator.java | 296 SemanticContext preds = in getEdgeLabel()
|
D | Grammar.java | 41 import org.antlr.analysis.SemanticContext; 1519 public void synPredUsedInDFA(DFA dfa, SemanticContext semCtx) { in synPredUsedInDFA()
|
/external/antlr/tool/src/main/java/org/antlr/codegen/ |
D | ACyclicDFACodeGenerator.java | 134 SemanticContext preds = in walkFixedDFAGeneratingStateMachine()
|
D | CodeGenerator.java | 693 SemanticContext preds = t.getGatedPredicatesInNFAConfigurations(); in generateSpecialState() 742 SemanticContext semCtx = label.getSemanticContext(); in genSemanticPredicateExpr()
|
/external/clang/lib/Sema/ |
D | SemaTemplate.cpp | 879 DeclContext *SemanticContext; in CheckClassTemplate() local 885 SemanticContext = computeDeclContext(SS, true); in CheckClassTemplate() 886 if (!SemanticContext) { in CheckClassTemplate() 897 if (RequireCompleteDeclContext(SS, SemanticContext)) in CheckClassTemplate() 903 if (SemanticContext->isDependentContext()) { in CheckClassTemplate() 904 ContextRAII SavedContext(*this, SemanticContext); in CheckClassTemplate() 908 diagnoseQualifiedDeclaration(SS, SemanticContext, Name, NameLoc); in CheckClassTemplate() 910 LookupQualifiedName(Previous, SemanticContext); in CheckClassTemplate() 912 SemanticContext = CurContext; in CheckClassTemplate() 919 DiagnoseClassNameShadow(SemanticContext, in CheckClassTemplate() [all …]
|
/external/antlr/tool/ |
D | CHANGES.txt | 125 * Improve algorithm for SemanticContext Boolean predicate reduction 1330 src/org/antlr/analysis/SemanticContext.java # edit
|