public Attribute resolveRetvalOrProperty(String y) { if ( retvals!=null ) { Attribute a = retvals.get(y); if ( a!=null ) return a; } AttributeDict d = getPredefinedScope(LabelType.RULE_LABEL); return d.get(y); }
public void syntaxError(ErrorType etype, String fileName, org.antlr.runtime.Token token, org.antlr.runtime.RecognitionException antlrException, Object... args) { ANTLRMessage msg = new GrammarSyntaxMessage(etype,fileName,token,antlrException,args); emit(etype, msg); }
@Override protected void enterChannelsSpec(GrammarAST tree) { if (g.isParser()) { g.tool.errMgr.grammarError(ErrorType.CHANNELS_BLOCK_IN_PARSER_GRAMMAR, g.fileName, tree.token); } else if (g.isCombined()) { g.tool.errMgr.grammarError(ErrorType.CHANNELS_BLOCK_IN_COMBINED_GRAMMAR, g.fileName, tree.token); } }
public void warning(ANTLRMessage msg) { if ( listeners.isEmpty() ) { defaultListener.warning(msg); } else { for (ANTLRToolListener l : listeners) l.warning(msg); } if (warnings_are_errors) { errMgr.emit(ErrorType.WARNING_TREATED_AS_ERROR, new ANTLRMessage(ErrorType.WARNING_TREATED_AS_ERROR)); } }
@Override public void nonLocalAttr(String expr, Token x, Token y) { Rule r = g.getRule(x.getText()); if ( r==null ) { errMgr.grammarError(ErrorType.UNDEFINED_RULE_IN_NONLOCAL_REF, g.fileName, x, x.getText(), y.getText(), expr); } else if ( r.resolveToAttribute(y.getText(), null)==null ) { errMgr.grammarError(ErrorType.UNKNOWN_RULE_ATTRIBUTE, g.fileName, y, y.getText(), x.getText(), expr); } }
public void grammarError(ErrorType etype, String fileName, org.antlr.runtime.Token token, Object... args) { ANTLRMessage msg = new GrammarSemanticsMessage(etype,fileName,token,args); emit(etype, msg); }
@Override protected void enterChannelsSpec(GrammarAST tree) { if (g.isParser()) { g.tool.errMgr.grammarError(ErrorType.CHANNELS_BLOCK_IN_PARSER_GRAMMAR, g.fileName, tree.token); } else if (g.isCombined()) { g.tool.errMgr.grammarError(ErrorType.CHANNELS_BLOCK_IN_COMBINED_GRAMMAR, g.fileName, tree.token); } }
public void warning(ANTLRMessage msg) { if ( listeners.isEmpty() ) { defaultListener.warning(msg); } else { for (ANTLRToolListener l : listeners) l.warning(msg); } if (warnings_are_errors) { errMgr.emit(ErrorType.WARNING_TREATED_AS_ERROR, new ANTLRMessage(ErrorType.WARNING_TREATED_AS_ERROR)); } }
public Attribute resolveRetvalOrProperty(String y) { if ( retvals!=null ) { Attribute a = retvals.get(y); if ( a!=null ) return a; } AttributeDict d = getPredefinedScope(LabelType.RULE_LABEL); return d.get(y); }
public void grammarError(ErrorType etype, String fileName, org.antlr.runtime.Token token, Object... args) { ANTLRMessage msg = new GrammarSemanticsMessage(etype,fileName,token,args); emit(etype, msg); }
public void syntaxError(ErrorType etype, String fileName, org.antlr.runtime.Token token, org.antlr.runtime.RecognitionException antlrException, Object... args) { ANTLRMessage msg = new GrammarSyntaxMessage(etype,fileName,token,antlrException,args); emit(etype, msg); }
@Override protected void enterChannelsSpec(GrammarAST tree) { if (g.isParser()) { g.tool.errMgr.grammarError(ErrorType.CHANNELS_BLOCK_IN_PARSER_GRAMMAR, g.fileName, tree.token); } else if (g.isCombined()) { g.tool.errMgr.grammarError(ErrorType.CHANNELS_BLOCK_IN_COMBINED_GRAMMAR, g.fileName, tree.token); } }
public Attribute resolveRetvalOrProperty(String y) { if ( retvals!=null ) { Attribute a = retvals.get(y); if ( a!=null ) return a; } AttributeDict d = getPredefinedScope(LabelType.RULE_LABEL); return d.get(y); }
public void grammarError(ErrorType etype, String fileName, org.antlr.runtime.Token token, Object... args) { ANTLRMessage msg = new GrammarSemanticsMessage(etype,fileName,token,args); emit(etype, msg); }
public void syntaxError(ErrorType etype, String fileName, org.antlr.runtime.Token token, org.antlr.runtime.RecognitionException antlrException, Object... args) { ANTLRMessage msg = new GrammarSyntaxMessage(etype,fileName,token,antlrException,args); emit(etype, msg); }
@Override protected void enterChannelsSpec(GrammarAST tree) { if (g.isParser()) { g.tool.errMgr.grammarError(ErrorType.CHANNELS_BLOCK_IN_PARSER_GRAMMAR, g.fileName, tree.token); } else if (g.isCombined()) { g.tool.errMgr.grammarError(ErrorType.CHANNELS_BLOCK_IN_COMBINED_GRAMMAR, g.fileName, tree.token); } }
public Attribute resolveRetvalOrProperty(String y) { if ( retvals!=null ) { Attribute a = retvals.get(y); if ( a!=null ) return a; } AttributeDict d = getPredefinedScope(LabelType.RULE_LABEL); return d.get(y); }
public void grammarError(ErrorType etype, String fileName, org.antlr.runtime.Token token, Object... args) { ANTLRMessage msg = new GrammarSemanticsMessage(etype,fileName,token,args); emit(etype, msg); }
@Override protected void enterChannelsSpec(GrammarAST tree) { if (g.isParser()) { g.tool.errMgr.grammarError(ErrorType.CHANNELS_BLOCK_IN_PARSER_GRAMMAR, g.fileName, tree.token); } else if (g.isCombined()) { g.tool.errMgr.grammarError(ErrorType.CHANNELS_BLOCK_IN_COMBINED_GRAMMAR, g.fileName, tree.token); } }
public Attribute resolveRetvalOrProperty(String y) { if ( retvals!=null ) { Attribute a = retvals.get(y); if ( a!=null ) return a; } AttributeDict d = getPredefinedScope(LabelType.RULE_LABEL); return d.get(y); }