Logo Search packages:      
Sourcecode: yodl version File versions  Download package


#include "yodl.h"

error_gram (char const *rule, char const *msg,...)
  va_list args;
  char* symbol;

  /* urg, duplicate code in error_gram */
  if (!lexbuf || !*lexbuf)
    symbol = "<empty>";
  else if (*lexbuf == '\n')
    symbol = "<newline>";
    symbol = lexbuf;

    use GNU style message
    if only to enable yfte (TM) to take you there.
  gnu_message (rule);

  va_start (args, msg);
  gnu_vmessage (msg, args);
  va_end (args);
  gnu_message ("last parsed symbol: `%s'", symbol);

  exit (1);

Generated by  Doxygen 1.6.0   Back to index