Searched refs:SemanticContext (Results 1 – 18 of 18) sorted by relevance
59 public abstract class SemanticContext { class65 …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 …]
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 = null; in tryToResolveWithSemanticPredicates()[all …]
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 = 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()
128 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()
39 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()
57 public SemanticContext semanticContext = SemanticContext.EMPTY_SEMANTIC_CONTEXT;92 SemanticContext semanticContext) in NFAConfiguration()139 semanticContext!=SemanticContext.EMPTY_SEMANTIC_CONTEXT ) { in toString()
233 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()
103 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()
834 SemanticContext ctx = t.label.getSemanticContext();858 SemanticContext ctx = t.label.getSemanticContext();992 SemanticContext semctx = (SemanticContext) it.next();
230 public SemanticContext getSemanticContext() { in getSemanticContext()
168 SemanticContext preds = in walkSerializingFA()
296 SemanticContext preds = in getEdgeLabel()
1478 public void synPredUsedInDFA(DFA dfa, SemanticContext semCtx) { in synPredUsedInDFA()
133 SemanticContext preds = in walkFixedDFAGeneratingStateMachine()
698 SemanticContext preds = t.getGatedPredicatesInNFAConfigurations(); in generateSpecialState()747 SemanticContext semCtx = label.getSemanticContext(); in genSemanticPredicateExpr()
864 DeclContext *SemanticContext; in CheckClassTemplate() local870 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 …]
META-INF/ META-INF/MANIFEST.MF org/ org/antlr/ org/ ...
54 * Improve algorithm for SemanticContext Boolean predicate reduction1259 src/org/antlr/analysis/SemanticContext.java # edit