Search in sources :

Example 1 with NonLocalAttrRef

use of org.antlr.v4.codegen.model.chunk.NonLocalAttrRef in project antlr4 by tunnelvisionlabs.

the class ActionTranslator method nonLocalAttr.

@Override
public void nonLocalAttr(String expr, Token x, Token y) {
    gen.g.tool.log("action-translator", "nonLocalAttr " + x + "::" + y);
    Rule r = factory.getGrammar().getRule(x.getText());
    chunks.add(new NonLocalAttrRef(nodeContext, x.getText(), y.getText(), r.index));
}
Also used : Rule(org.antlr.v4.tool.Rule) NonLocalAttrRef(org.antlr.v4.codegen.model.chunk.NonLocalAttrRef)

Example 2 with NonLocalAttrRef

use of org.antlr.v4.codegen.model.chunk.NonLocalAttrRef in project antlr4 by antlr.

the class ActionTranslator method nonLocalAttr.

@Override
public void nonLocalAttr(String expr, Token x, Token y) {
    gen.g.tool.log("action-translator", "nonLocalAttr " + x + "::" + y);
    Rule r = factory.getGrammar().getRule(x.getText());
    chunks.add(new NonLocalAttrRef(nodeContext, x.getText(), y.getText(), r.index));
}
Also used : Rule(org.antlr.v4.tool.Rule) NonLocalAttrRef(org.antlr.v4.codegen.model.chunk.NonLocalAttrRef)

Aggregations

NonLocalAttrRef (org.antlr.v4.codegen.model.chunk.NonLocalAttrRef)2 Rule (org.antlr.v4.tool.Rule)2