| Package | Description |
|---|---|
| org.antlr.v4.codegen.model.decl | |
| org.antlr.v4.parse | |
| org.antlr.v4.tool |
| Modifier and Type | Method and Description |
|---|---|
void |
StructDecl.addDecl(Attribute a) |
| Modifier and Type | Method and Description |
|---|---|
void |
StructDecl.addDecls(java.util.Collection<Attribute> attrList) |
| Constructor and Description |
|---|
AttributeDecl(OutputModelFactory factory,
Attribute a) |
| Modifier and Type | Method and Description |
|---|---|
static Attribute |
ScopeParser.parseAttributeDef(ActionAST action,
Pair<java.lang.String,java.lang.Integer> decl,
Grammar g)
For decls like "String foo" or "char *foo32[]" compute the ID
and type declarations.
|
| Modifier and Type | Method and Description |
|---|---|
static Pair<java.lang.Integer,java.lang.Integer> |
ScopeParser._parsePostfixDecl(Attribute attr,
java.lang.String decl,
ActionAST a,
Grammar g) |
static Pair<java.lang.Integer,java.lang.Integer> |
ScopeParser._parsePrefixDecl(Attribute attr,
java.lang.String decl,
ActionAST a,
Grammar g) |
| Modifier and Type | Field and Description |
|---|---|
java.util.LinkedHashMap<java.lang.String,Attribute> |
AttributeDict.attributes
The list of
Attribute objects. |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
AttributeDict.add(Attribute a) |
Attribute |
AttributeDict.get(java.lang.String name) |
Attribute |
Rule.resolveRetvalOrProperty(java.lang.String y) |
Attribute |
AttributeResolver.resolveToAttribute(java.lang.String x,
ActionAST node) |
Attribute |
Rule.resolveToAttribute(java.lang.String x,
ActionAST node)
$x Attribute: rule arguments, return values, predefined rule prop.
|
Attribute |
Alternative.resolveToAttribute(java.lang.String x,
ActionAST node)
$x Attribute: rule arguments, return values, predefined rule prop.
|
Attribute |
Grammar.resolveToAttribute(java.lang.String x,
ActionAST node) |
Attribute |
AttributeResolver.resolveToAttribute(java.lang.String x,
java.lang.String y,
ActionAST node) |
Attribute |
Rule.resolveToAttribute(java.lang.String x,
java.lang.String y,
ActionAST node)
$x.y Attribute: x is surrounding rule, label ref (in any alts)
|
Attribute |
Alternative.resolveToAttribute(java.lang.String x,
java.lang.String y,
ActionAST node)
$x.y, x can be surrounding rule, token/rule/label ref.
|
Attribute |
Grammar.resolveToAttribute(java.lang.String x,
java.lang.String y,
ActionAST node) |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
AttributeDict.add(Attribute a) |