help-bison
[Top][All Lists]
Advanced

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

Re: Question about token stack


From: Akim Demaille
Subject: Re: Question about token stack
Date: Tue, 1 Sep 2020 07:38:57 +0200

Hi Ervin,

> Le 30 août 2020 à 20:21, Hegedüs Ervin <airween@gmail.com> a écrit :
> 
> oh my... thanks, now it's clear.
> 
> Here is the result:
> 
> Starting parse
> [...]
> Entering state 1
> Stack now 0 1
> Reading a token
> Next token is token T_CONFIG_DIRECTIVE_ARGUMENT ()
> Parse error: syntax error in file badconf1.conf, line 1

It's not clear to me if you finally understood what's going on here.
So in case of doubt:

*Don't exit from yyerror*.  How can you expect the parser to clean
up anything if you exit?

Read again the calling conventions for yyparse.

Cheers!


reply via email to

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