Re: Question about token stack
Akim Demaille <[email protected]>
| Newsgroups | gmane.comp.parsers.bison.general |
|---|---|
| Message-ID | <[email protected]> |
> Le 30 août 2020 à 17:17, Ervin Hegedüs <[email protected]> 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).