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 .