[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");
%}
%locations
%%
foo: 'x';
%%
int main ()
{
return yyparse ();
}
Frank
--
Frank Heckenbach, address@hidden
http://fjf.gnu.de/
GnuPG and PGP keys: http://fjf.gnu.de/plan (7977168E)
- GLR parsers and locations, Frank Heckenbach, 2003/06/05
- Re: GLR parsers and locations, Paul Eggert, 2003/06/05
- Re: GLR parsers and locations,
Frank Heckenbach <=
- Re: GLR parsers and locations, Paul Hilfinger, 2003/06/05
- Re: GLR parsers and locations, Frank Heckenbach, 2003/06/08
- Re: GLR parsers and locations, Paul Hilfinger, 2003/06/09
- Re: GLR parsers and locations, Frank Heckenbach, 2003/06/15
- Re: GLR parsers and locations, Paul Hilfinger, 2003/06/15
- Re: GLR parsers and locations, Paul Eggert, 2003/06/17