Re: beginner question about bison

Beeblebrox <>
10 Oct 1998 01:03:39 -0400

          From comp.compilers

Related articles
beginner question about bison (1998-10-07)
Re: beginner question about bison (Beeblebrox) (1998-10-10)
Re: beginner question about bison (1998-10-13)
| List of all articles for this month |

From: Beeblebrox <>
Newsgroups: comp.compilers
Date: 10 Oct 1998 01:03:39 -0400
Organization: Groningen University (NL)
References: 98-10-060
Keywords: yacc

Christian Schlange wrote:
> Bison compiles the source and creates the c-file, but this is NOT
> compilable, because some variables doesn't seem to be declared
> (in my case yyval1 and yyval2, in other sources also yytext). This
> seem to be variables used for storing intermediate results, and
> I wonder WHY they aren't declared.

Bison only creates a parser module. You will also have to supply
a lexer module (collect chars from input into tokens).
Have a look at flex, it normally is partner of Bison.

Jan Jongejan 8-{) --me with moustache
Dept. Comp.Sci.,
Univ. of Groningen, and add a cigar...

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.