dap4/d4core/src/main/java/dap4/core/ce/parser/CELexer.java
public void yyerror(String s)
    {
        System.err.println("CEParserImpl.yyerror: " + s + "; parse failed at char: " + charno + "; near: ");
        String context = getInput();
        int show = (context.length() < CONTEXTLEN ? context.length() : CONTEXTLEN);
        System.err.println(context.substring(context.length() - show) + "^");
        new Exception().printStackTrace(System.err);
    }
public void yyerror(String s)
    {
        System.err.println("CEParserImpl.yyerror: " + s + "; parse failed at char: " + charno + "; near: ");
        String context = getInput();
        int show = (context.length() < CONTEXTLEN ? context.length() : CONTEXTLEN);
        System.err.println(context.substring(context.length() - show) + "^");
        new Exception().printStackTrace(System.err);
    }
public void yyerror ( String s ) { System . err . println ( "CEParserImpl.yyerror: " + s + "; parse failed at char: " + charno + "; near: " ) ; String context = getInput ( ) ; int show = ( context . length ( ) < CONTEXTLEN ? context . length ( ) : CONTEXTLEN ) ; System . err . println ( context . substring ( context . length ( ) - show ) + "^" ) ; new Exception ( ) . printStackTrace ( System . err ) ; }
Entry point for error reporting.  Emits an error
in a user-defined way.
Part of Lexer interface.

@param s The string for the error message.
Entry point for error reporting . Emits an error in a user - defined way . Part of Lexer interface .