~ubuntu-branches/ubuntu/raring/pretzel/raring

« back to all changes in this revision

Viewing changes to fgrammar/fgparse.nw

  • Committer: Bazaar Package Importer
  • Author(s): James Troup
  • Date: 2001-08-22 17:33:18 UTC
  • Revision ID: james.westby@ubuntu.com-20010822173318-n8esjjlcj78jgrxh
Tags: 2.0n-1.1
* Non-maintainer upload.
* debian/control (Build-Depends): add debhelper, closes: #109646.
* debian/changelog: remove local variables stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
 
81
81
<<bison-implementation>>=
82
82
%{
 
83
#include <stdlib.h>
83
84
#include "fgparse.h"    /* include own header */
84
85
#include <assert.h>
85
86
%}
620
621
 
621
622
<<contents of [[before_lines]]>>=
622
623
        "%{                                                     \n\n",
 
624
        "#include <stdlib.h>                                    \n",
623
625
        "  /* include own header only in default case: */       \n",
624
626
        "#ifndef PPARSE_NAME                                    \n",
625
627
        "#include \"Ppparse.h\"                                 \n",
626
628
        "#endif                                                 \n\n",
627
629
        "  /* this is a definition of the yyerror routine */    \n",
628
 
        "yyerror (const char *s)                                \n",
 
630
        "int yyerror (const char *s)                            \n",
629
631
        "{  /* ignore error messages by BISON */                \n",
630
632
        "   /* trick! use s do get around warning `s not used'. */\n",
631
633
        "   if (1==0) fprintf(stderr, \"%s\", s);               \n",
1119
1121
bison command line.
1120
1122
 
1121
1123
<<bison user code>>=
1122
 
Pretzel_fgerror (const char *s)
 
1124
int Pretzel_fgerror (const char *s)
1123
1125
{
1124
1126
        return 0;
1125
1127
}