[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about token stack
From: |
Ervin Hegedüs |
Subject: |
Re: Question about token stack |
Date: |
Sun, 30 Aug 2020 18:06:59 +0200 |
User-agent: |
NeoMutt/20171215 |
Hi Akim
On Sun, Aug 30, 2020 at 05:36:49PM +0200, Akim Demaille wrote:
> > Le 30 août 2020 à 17:17, Ervin Hegedüs <airween@gmail.com> a écrit :
> >
> > in my parser code I got:
> >
> > #ifdef YYDEBUG
> > yydebug = 1;
> > #endif
> >
> > and I compiled the code:
> > bison -d myparser.y
> > flex -d mylexer.l
> > gcc ...
> >
> > the output is:
> >
> > --accepting rule at line 52 ("ConfKey2")
> > --accepting rule at line 67 (" ")
> > --accepting rule at line 55 ("fo")
> > This is a configuration directive and argument: 'ConfKey2' 'fo'
> > --accepting rule at line 68 ("'")
> > UNKNOWN TOKEN: ''' in file: badconf3.conf, line 1, state:
> > ST_CONFIG_DIRECTIVE
> > --accepting rule at line 55 ("o")
> > Parse error: syntax error in file , line 1
>
> These are not Bison's traces, only Flex's ones. You need to enable Bison
> traces (see the documentation).
the documentation shows:
https://www.gnu.org/software/bison/manual/html_node/Enabling-Traces.html
the option -t (POSIX Yacc compliant)
the option --debug (Bison extension)
I tried with both, but I didn't get any other info - so perhaps I
forgot something. :(
a.
- Question about token stack, Ervin Hegedüs, 2020/08/30
- Re: Question about token stack, Akim Demaille, 2020/08/30
- Re: Question about token stack, Ervin Hegedüs, 2020/08/30
- Re: Question about token stack, Akim Demaille, 2020/08/30
- Re: Question about token stack, Ervin Hegedüs, 2020/08/30
- Re: Question about token stack, Akim Demaille, 2020/08/30
- Re: Question about token stack,
Ervin Hegedüs <=
- Re: Question about token stack, Akim Demaille, 2020/08/30
- Re: Question about token stack, Hegedüs Ervin, 2020/08/30