From: earnie_boyd AT hotmail DOT com (Earnie Boyd) Subject: byacc - Exception trapped 2 Oct 1997 10:23:21 -0700 Message-ID: <19971002170837.5152.qmail.cygnus.gnu-win32@hotmail.com> Content-Type: multipart/mixed; boundary="====================987654321_0==_" To: gnu-win32 AT cygnus DOT com --====================987654321_0==_ Content-Type: text/plain; charset="us-ascii" 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 --====================987654321_0==_ Content-Type: application/octet-stream; name="ch1_05_error" Content-Transfer-Encoding: x-uuencode Content-Disposition: attachment; filename="ch1_05_error" begin 644 ch1_05_error M*&,Z7'5S97)S7&)C;V5E8C!<37D AT 4')O:F5C='-<;&5A&4@-#`U-RD AT 26X@8WEG=VEN7V5X8V5P=%]H86YD;&5R"BAC.EQU%QC:#$M,#4N97AE(#0P M-32!0 M&-E<'1I;VX@ M0S`P,#`P,#4 AT 870@-#`R0S%QC:#$M,#4N97AE(#0P-3"`P(&-X(#$P,#0W.#$T(&1X(#`**&,Z7'5S97)S7&)C;V5E8C!<37D@ M4')O:F5C='-<;&5A&4@-#`U-RD AT 97AC97!T:6]N M.B!S:2`U(&1I(#$P,#!".$(S(&)P(#(T,$8P,4,@2!0&-E<'1I;VX@:7,Z(%-405154U]!0T-%4U-?5DE/3$%424]. M"BAC.EQU%QC:#$M M,#4N97AE(#0P-32!0#$P,#!#14,R"BAC.EQU%QC:#$M,#4N97AE(#0P-32!0#%QC:#$M,#4N97AE(#0P-32!0#0P,S)&,0HH8SI<=7-E2!0#0P,3`S0 AT HH8SI< M=7-E2!0#`**&,Z M7'5S97)S7&)C;V5E8C!<37D AT 4')O:F5C='-<;&5A&4@-#`U-RD AT 16YD(&]F('-T86-K('1R86-E"@`` ` end --====================987654321_0==_ Content-Type: application/octet-stream; name="ch1_05_byacc" Content-Transfer-Encoding: x-uuencode Content-Disposition: attachment; filename="ch1_05_byacc" begin 644 ch1_05_byacc M)7L*+RH*("H AT 17AA;7!L92`Q+3FEN9R!%;F=L:7-H('-E;G1E M;F-EPH@("`@=VAI;&4H(69E;V8H>7EI;BDI('L*("`@("`@("!Y>7!A MPH@("`@9G!R ;:6YT9BAS=&1E&5R('1O(&)E(&-A;&QE9"!F7IE2YT86(N:"(@("`@("`O*B!T M;VME;B!C;V1E7`L(&-H87(@ M*G=OR`@('-T871E(#T AT 3$]/ M2U50.R`*("`@("`@("`@("`@R!S=&%T92`](%9%4D([ M('T*7F%D:B`@("![('-T871E(#T AT 041*14-4259%.R`@?0I>861V("`@('L@ MR!S=&%T92`]($Y/54X[('T* M7G!R97`@("![('-T871E(#T AT 4%)%4$]3251)3TX[('T*7G!R;VX@("![('-T M871E(#T AT 4%)/3D]53CL@?0I>8V]N:B`@('L@PH@("`@("`@("`@ M("!I9B`H7ET97AT*3L@("`@+RH AT 9&5F:6YE('1H92!C=7)R96YT M('=O7ET97AT*2D@>PH@("`@("`@("`@("`@ M("`@("`@(&-A7ET97AT*3L*("`@("`@("`@("`@("`@("`@("`O*B!D;VXG="!R971U M71H:6YG M(&5L7!E7!E.PH@("`@'0["GT["@IS=')U8W0@=V]R9"`J=V]R9%]L:7-T.R`O*B!F:7)S M="!E;&5M96YT(&EN('=OPH@("`@("`@('!R:6YT9B AT B(2$A('=A2!D969I;F5D(%QN(BP@=V]R9"D["B`@("`@("`@'0@/2!W;W)D7VQI7!E(#T@='EP93L*("`@('=OPH@("`@'0I('L*("`@("`@("!I9B`H