Logo Search packages:      
Sourcecode: jflex version File versions

void java_cup::runtime::lr_parser::report_error ( String  message,
Object  info 
) [inline]

Report a non fatal error (or warning). This method takes a message string and an additional object (to be used by specializations implemented in subclasses). Here in the base class a very simple implementation is provided which simply prints the message to System.err.

message an error message.
info an extra object reserved for use by specialized subclasses.

Definition at line 375 of file lr_parser.java.

Referenced by report_fatal_error(), and syntax_error().

      if (info instanceof Symbol)
      if (((Symbol)info).left != -1)
      System.err.println(" at character " + ((Symbol)info).left + 
                     " of input");
      else System.err.println("");
      else System.err.println("");

Generated by  Doxygen 1.6.0   Back to index