RE: [sqlite] a few lemon questions

2007-12-20 Thread Joe Wilson
--- "Wilson, Ron" <[EMAIL PROTECTED]> wrote: > That being said, I've run into a huge roadblock. I'm using flex which > produces lex.yy.c which includes and . Which errno/unistd functions are actually used by the generated flex code? getc, ungetc? Maybe you can supply work-alike functions and t

RE: [sqlite] a few lemon questions

2007-12-20 Thread Wilson, Ron
PM To: sqlite-users@sqlite.org Subject: RE: [sqlite] a few lemon questions --- "Wilson, Ron" <[EMAIL PROTECTED]> wrote: > 1. My non-terminal token destructors are not getting called. The > terminal destructors work fine, but none of my terminal tokens need > destruction

RE: [sqlite] a few lemon questions

2007-12-20 Thread Joe Wilson
--- "Wilson, Ron" <[EMAIL PROTECTED]> wrote: > 1. My non-terminal token destructors are not getting called. The > terminal destructors work fine, but none of my terminal tokens need > destruction. Two of my non-terminals definitely require destruction. I > have properly defined the %destructor a

RE: [sqlite] a few lemon questions

2007-12-20 Thread Wilson, Ron
Ok I've come a long way and have a functional parser using lemon and flex. However, there are a few unresolved items that I need help with. 1. My non-terminal token destructors are not getting called. The terminal destructors work fine, but none of my terminal tokens need destruction. Two of my

RE: [sqlite] a few lemon questions

2007-12-18 Thread Joe Wilson
--- "Wilson, Ron" <[EMAIL PROTECTED]> wrote: > I think the source of my confusion is the fact that parse.h does not > appear in any of the sqlite source tree. I found it now that I've run > lemon on parse.y. However, I still can't find definitions for COMMA, > SEMI, etc. They appear in the lemon

RE: [sqlite] a few lemon questions

2007-12-18 Thread Wilson, Ron
more work for myself. Wish me luck! RW Ron Wilson, Senior Engineer, MPR Associates, 518.831.7546 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 3:45 PM To: sqlite-users@sqlite.org Subject: Re: [sqlite] a few lemon questions "Wilso

RE: [sqlite] a few lemon questions

2007-12-18 Thread Wilson, Ron
ginal Message- From: Joe Wilson [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 3:36 PM To: sqlite-users@sqlite.org Subject: Re: [sqlite] a few lemon questions --- "Wilson, Ron" <[EMAIL PROTECTED]> wrote: > %type multiselect_op {int} > multiselect_op(A) ::= U

Re: [sqlite] a few lemon questions

2007-12-18 Thread drh
"Wilson, Ron" <[EMAIL PROTECTED]> wrote: > I'm bringing myself up to speed on lemon. I have a few questions. Take > this example code: > > %type multiselect_op {int} > multiselect_op(A) ::= UNION(OP). {A = @OP;} > multiselect_op(A) ::= UNION ALL. {A = TK_ALL;} > multisele

Re: [sqlite] a few lemon questions

2007-12-18 Thread Joe Wilson
--- "Wilson, Ron" <[EMAIL PROTECTED]> wrote: > %type multiselect_op {int} > multiselect_op(A) ::= UNION(OP). {A = @OP;} > multiselect_op(A) ::= UNION ALL. {A = TK_ALL;} > multiselect_op(A) ::= EXCEPT|INTERSECT(OP). {A = @OP;} > > 1. What does the '@' symbol mean? At first