This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

byacc - Exception trapped


This should be simple:

I wanted to learn lex & yacc.  So I bought the O'Reilly & Associates 
book.  I begin compiling and linking the examples.  Things are looking 
good and working fine; until, I get to the yacc section in chapter 1.

I have the lex examples coded from Example 1.6 and the yacc examples 
coded from Example 1.7 and 1.8.  I then do:

    flex ch1-05.flex
    byacc ch1-05.byacc
    gcc -c lex.yy.c y.tab.c
    gcc -o ch1-05 lex.yy.o y.tab.o -lfl

Now here is where the problem starts:
I execute ch1-05 and get the attached dump. 8^(

I've also attached the flex and byacc source files.


Does anyone have a solution?

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

ch1_05_error

ch1_05_byacc

ch1_05_flex







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]