Re: [HACKERS] help needed with yacc/bison

2003-07-02 Thread Hannu Krosing
Oleg Bartunov kirjutas K, 02.07.2003 kell 11:39: > > > The problem is recognizing VERSION > > > (from gram.y) > > > > > > version: > > > INTEGER DOT INTEGER{ $$ = strconcat($1, $3, $2); } > > > | version DOT INTEGER { $$ = strconcat($1, $3, $2); } > > > > removing the line abo

Re: [HACKERS] help needed with yacc/bison

2003-07-02 Thread Oleg Bartunov
On Wed, 1 Jul 2003, Hannu Krosing wrote: > Oleg Bartunov kirjutas T, 01.07.2003 kell 15:49: > > Hi there, > > > > attached archive contains simple parser demonstrating our > > problem. untar it, make, make test > > > > Good test: > > echo -n 12 34.1234 ... | ./parser > > INTEGER:'12' > > C

Re: [HACKERS] help needed with yacc/bison

2003-07-01 Thread Hannu Krosing
Oleg Bartunov kirjutas T, 01.07.2003 kell 15:49: > Hi there, > > attached archive contains simple parser demonstrating our > problem. untar it, make, make test > > Good test: > echo -n 12 34.1234 ... | ./parser > INTEGER:'12' > CHAR: ' ' > VERSION:'34.1234' > CHAR: ' ' > DOT:

Re: [HACKERS] help needed with yacc/bison

2003-07-01 Thread Oleg Bartunov
Sorry, forgot to attach archive :) Oleg On Tue, 1 Jul 2003, Oleg Bartunov wrote: > Hi there, > > attached archive contains simple parser demonstrating our > problem. untar it, make, make test > > Good test: > echo -n 12 34.1234 ... | ./parser > INTEGER:'12' > CHAR: ' ' > VERSIO

[HACKERS] help needed with yacc/bison

2003-07-01 Thread Oleg Bartunov
Hi there, attached archive contains simple parser demonstrating our problem. untar it, make, make test Good test: echo -n 12 34.1234 ... | ./parser INTEGER:'12' CHAR: ' ' VERSION:'34.1234' CHAR: ' ' DOT:'.' DOT:'.' DOT:'.' Wrong: echo -n 12 34.1234. ... | ./parser