public abstract class SemanticContext extends Object
p1&&p2
, or a sum of products p1||p2
.
I have scoped the SemanticContext.AND
, SemanticContext.OR
, and SemanticContext.Predicate
subclasses of
SemanticContext
within the scope of this outer class.Modifier and Type | Class and Description |
---|---|
static class |
SemanticContext.AND |
static class |
SemanticContext.OR |
static class |
SemanticContext.Predicate |
Modifier and Type | Field and Description |
---|---|
static SemanticContext |
NONE |
SemanticContext |
parent |
Constructor and Description |
---|
SemanticContext() |
Modifier and Type | Method and Description |
---|---|
static SemanticContext |
and(SemanticContext a,
SemanticContext b) |
abstract boolean |
eval(Recognizer<?,?> parser,
RuleContext outerContext)
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
static SemanticContext |
or(SemanticContext a,
SemanticContext b) |
public static final SemanticContext NONE
public SemanticContext parent
public abstract boolean eval(Recognizer<?,?> parser, RuleContext outerContext)
public static SemanticContext and(SemanticContext a, SemanticContext b)
public static SemanticContext or(SemanticContext a, SemanticContext b)
Copyright © 1992-2013 ANTLR. All Rights Reserved.