Home
last modified time | relevance | path

Searched refs:SemanticContext (Results 1 – 18 of 18) sorted by relevance

/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/
DSemanticContext.java59 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 {
212 public SemanticContext getGatedPredicateContext() { in getGatedPredicateContext()
303 public static abstract class CommutativePredicate extends SemanticContext {
304 protected final Set<SemanticContext> operands = new HashSet<SemanticContext>();
307 public CommutativePredicate(SemanticContext a, SemanticContext b) { in CommutativePredicate()
325 public CommutativePredicate(HashSet<SemanticContext> contexts){ in CommutativePredicate()
326 for (SemanticContext context : contexts){ in CommutativePredicate()
[all …]
DNFAToDFAConverter.java162 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 = null; in tryToResolveWithSemanticPredicates()
[all …]
DLL1Analyzer.java326 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 = null; 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()
DLL1DFA.java128 SemanticContext.Predicate synpred = in LL1DFA()
131 synpred = new SemanticContext.TruePredicate(); in LL1DFA()
152 protected SemanticContext.Predicate getSynPredForAlt(NFAState decisionStartState, in getSynPredForAlt()
162 SemanticContext ctx = altStartState.transition[0].label.getSemanticContext(); in getSynPredForAlt()
164 SemanticContext.Predicate p = (SemanticContext.Predicate)ctx; in getSynPredForAlt()
173 return (SemanticContext.Predicate)altStartState.transition[0].label.getSemanticContext(); in getSynPredForAlt()
DPredicateLabel.java39 protected SemanticContext semanticContext;
44 this.semanticContext = new SemanticContext.Predicate(predicateASTNode); in PredicateLabel()
48 public PredicateLabel(SemanticContext semCtx) { in PredicateLabel()
74 public SemanticContext getSemanticContext() { in getSemanticContext()
DNFAConfiguration.java57 public SemanticContext semanticContext = SemanticContext.EMPTY_SEMANTIC_CONTEXT;
92 SemanticContext semanticContext) in NFAConfiguration()
139 semanticContext!=SemanticContext.EMPTY_SEMANTIC_CONTEXT ) { in toString()
DDFAState.java233 if ( c.semanticContext!=SemanticContext.EMPTY_SEMANTIC_CONTEXT ) { in addNFAConfiguration()
262 SemanticContext semanticContext) in addNFAConfiguration()
659 Set<SemanticContext> synpreds = new HashSet<SemanticContext>(); in getGatedSyntacticPredicatesInNFAConfigurations()
662 SemanticContext gatedPredExpr = in getGatedSyntacticPredicatesInNFAConfigurations()
703 public SemanticContext getGatedPredicatesInNFAConfigurations() { in getGatedPredicatesInNFAConfigurations()
704 SemanticContext unionOfPredicatesFromAllAlts = null; in getGatedPredicatesInNFAConfigurations()
708 SemanticContext gatedPredExpr = in getGatedPredicatesInNFAConfigurations()
727 SemanticContext.or(unionOfPredicatesFromAllAlts,gatedPredExpr); in getGatedPredicatesInNFAConfigurations()
731 if ( unionOfPredicatesFromAllAlts instanceof SemanticContext.TruePredicate ) { in getGatedPredicatesInNFAConfigurations()
DDecisionProbe.java103 protected Map<DFAState, Map<Integer,SemanticContext>> stateToAltSetWithSemanticPredicatesMap =
104 new HashMap<DFAState, Map<Integer,SemanticContext>>();
390 public SemanticContext getSemanticContextForAlt(DFAState d, int alt) { in getSemanticContextForAlt()
395 return (SemanticContext)altToPredMap.get(Utils.integer(alt)); in getSemanticContextForAlt()
DDFA.java834 SemanticContext ctx = t.label.getSemanticContext();
858 SemanticContext ctx = t.label.getSemanticContext();
992 SemanticContext semctx = (SemanticContext) it.next();
DLabel.java230 public SemanticContext getSemanticContext() { in getSemanticContext()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DFASerializer.java168 SemanticContext preds = in walkSerializingFA()
DDOTGenerator.java296 SemanticContext preds = in getEdgeLabel()
DGrammar.java1478 public void synPredUsedInDFA(DFA dfa, SemanticContext semCtx) { in synPredUsedInDFA()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
DACyclicDFACodeGenerator.java133 SemanticContext preds = in walkFixedDFAGeneratingStateMachine()
DCodeGenerator.java698 SemanticContext preds = t.getGatedPredicatesInNFAConfigurations(); in generateSpecialState()
747 SemanticContext semCtx = label.getSemanticContext(); in genSemanticPredicateExpr()
/external/clang/lib/Sema/
DSemaTemplate.cpp864 DeclContext *SemanticContext; in CheckClassTemplate() local
870 SemanticContext = computeDeclContext(SS, true); in CheckClassTemplate()
871 if (!SemanticContext) { in CheckClassTemplate()
882 if (RequireCompleteDeclContext(SS, SemanticContext)) in CheckClassTemplate()
888 if (SemanticContext->isDependentContext()) { in CheckClassTemplate()
889 ContextRAII SavedContext(*this, SemanticContext); in CheckClassTemplate()
893 diagnoseQualifiedDeclaration(SS, SemanticContext, Name, NameLoc); in CheckClassTemplate()
895 LookupQualifiedName(Previous, SemanticContext); in CheckClassTemplate()
897 SemanticContext = CurContext; in CheckClassTemplate()
904 DiagnoseClassNameShadow(SemanticContext, in CheckClassTemplate()
[all …]
/external/antlr/antlr-3.4/lib/
Dantlr-3.4-complete.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/antlr/ org/ ...
/external/antlr/antlr-3.4/tool/
DCHANGES.txt54 * Improve algorithm for SemanticContext Boolean predicate reduction
1259 src/org/antlr/analysis/SemanticContext.java # edit