Home
last modified time | relevance | path

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

/external/antlr/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 {
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 …]
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; 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; 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.java131 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()
DPredicateLabel.java39 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()
DDFAState.java236 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()
DNFAConfiguration.java57 public SemanticContext semanticContext = SemanticContext.EMPTY_SEMANTIC_CONTEXT;
92 SemanticContext semanticContext) in NFAConfiguration()
142 semanticContext!=SemanticContext.EMPTY_SEMANTIC_CONTEXT ) { in toString()
DDecisionProbe.java103 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()
DDFA.java834 SemanticContext ctx = t.label.getSemanticContext();
858 SemanticContext ctx = t.label.getSemanticContext();
988 Set<? extends SemanticContext> synpreds = a.getGatedSyntacticPredicatesInNFAConfigurations();
991 for (SemanticContext semctx : synpreds) {
DLabel.java231 public SemanticContext getSemanticContext() { in getSemanticContext()
/external/antlr/tool/src/main/java/org/antlr/tool/
DFASerializer.java168 SemanticContext preds = in walkSerializingFA()
DDOTGenerator.java296 SemanticContext preds = in getEdgeLabel()
DGrammar.java41 import org.antlr.analysis.SemanticContext;
1519 public void synPredUsedInDFA(DFA dfa, SemanticContext semCtx) { in synPredUsedInDFA()
/external/antlr/tool/src/main/java/org/antlr/codegen/
DACyclicDFACodeGenerator.java134 SemanticContext preds = in walkFixedDFAGeneratingStateMachine()
DCodeGenerator.java693 SemanticContext preds = t.getGatedPredicatesInNFAConfigurations(); in generateSpecialState()
742 SemanticContext semCtx = label.getSemanticContext(); in genSemanticPredicateExpr()
/external/clang/lib/Sema/
DSemaTemplate.cpp879 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/
DCHANGES.txt125 * Improve algorithm for SemanticContext Boolean predicate reduction
1330 src/org/antlr/analysis/SemanticContext.java # edit