[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GLR parsers and locations

From: Frank Heckenbach
Subject: Re: GLR parsers and locations
Date: Fri, 6 Jun 2003 00:25:22 +0200

Paul Eggert wrote:

> Frank Heckenbach <address@hidden> writes:
> > Is there something special I need to do to make locations work
> > again, or is this a bug?
> Most likely it's a bug.  Can you please supply a test case?  It
> doesn't have to be short.  Thanks.

Simple test case. If run, it outputs `locations'. If I add
`%glr-parser' and run it again, it outputs nothing.

#include <stdio.h>
#include <stdlib.h>

static void yyerror (const char *s)
  printf ("%s\n", s);

static int yylex ()
  static int c = 0;
  return c++ ? EOF : 'x';

#define YYLLOC_DEFAULT(A, B, C) puts ("locations");



foo: 'x';


int main ()
  return yyparse ();


Frank Heckenbach, address@hidden
GnuPG and PGP keys: http://fjf.gnu.de/plan (7977168E)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]