Re: A problem of a name parser

2008-02-17 Thread Aaron Jackson
See below. On Feb 17, 2008, at 8:22 AM, Tong King wrote: Dear All, I write a .l file and a .y file to parse the struct: somebody=age, and the result is to print somebody's age is But the parser can work at the first time, at the second time it reports wrong although input is right.

Re: A problem of a name parser

2008-02-17 Thread Claudio Saavedra
El dom, 17-02-2008 a las 21:22 +0800, Tong King escribió: > Dear All, > I write a .l file and a .y file to parse the struct: somebody=age, and the > result is to print somebody's age is But the parser can work at the > first time, at the second time it reports wrong although input is right.

A problem of a name parser

2008-02-17 Thread Tong King
Dear All, I write a .l file and a .y file to parse the struct: somebody=age, and the result is to print somebody's age is But the parser can work at the first time, at the second time it reports wrong although input is right. I don't know why, and here is the code: 3.l %{ #include "3.tab.h