hi Manish,
Your files look fine. To compile and run calc, follow this sequence of
steps (or write these steps in a Makefile):
1. Compile a.y --> a.tab.c, a.tab.h
$ bison -d a.y
2. In your a.l lexer file replace the line
#include "example.parser.h"
with
#include "a.tab.h"
3. Comiple a.l --> lex
Manish,
I downloaded the bison-2.1 and built it on an HPUX-Itanium machine.
Now whenever i try to compile the C file generated from bison I am
getting syntax errors.
The syntax errors are caused by real problems in your
input to Bison.
I am generating with the command "bison -d a.y"
and r
Hello friends,
I downloaded the bison-2.1 and built it on an HPUX-Itanium machine.
Now whenever i try to compile the C file generated from bison I am
getting syntax errors. I am generating with the command "bison -d a.y"
and running it with "cc a.tab.c" Is there anything that we
need to