help-bison
[Top][All Lists]
Advanced

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

Bison and $ (dollarsign) token at the end


From: Grzegorz_Szostak
Subject: Bison and $ (dollarsign) token at the end
Date: Thu, 4 Jul 2002 15:38:25 +0200

Hello,
I run bison -v "myfile.y" and got output where last two rules I can't
understand:
----------------------------------------
state 15

    $           go to state 16



state 16

    $           go to state 17



state 17

    $default    accept
-----------------------------------------

If parser is in state 15 it needs two $ to accept... huh what $ is for? Is
it some kind of "end of input"?
How can I make yylex (flex++) make returns twice (-1)?
Waiting for reply...

GSZ




reply via email to

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