class Parser::Builders::Default
def diagnostic(type, reason, arguments, location, highlights=[])
def diagnostic(type, reason, arguments, location, highlights=[]) @parser.diagnostics.process( Diagnostic.new(type, reason, arguments, location, highlights)) if type == :error @parser.send :yyerror end end