Re: [sqlite] Lemon Parser vs bubble-generator.tcl

2018-08-31 Thread Richard Hipp
On 8/31/18, Warren Young wrote: > They’re separate. Here’s the Tcl source for the bubble diagrams: > > https://www.sqlite.org/docsrc/file/?name=art/syntax/bubble-generator-data.tcl > > …and here’s the Lemon grammar for SQLite’s SQL parser: > > https://www.sqlite.org/src/file?name=src/parse.y

Re: [sqlite] Lemon Parser vs bubble-generator.tcl

2018-08-31 Thread Scott Robison
On Fri, Aug 31, 2018 at 2:59 PM Warren Young wrote: > > On Aug 31, 2018, at 1:55 PM, Scott Robison wrote: > > > > Is one generated from the other, or are they maintained separately? > > They’re separate. Here’s the Tcl source for the bubble diagrams: As I suspected having looked at them in the

Re: [sqlite] Lemon Parser vs bubble-generator.tcl

2018-08-31 Thread Warren Young
On Aug 31, 2018, at 1:55 PM, Scott Robison wrote: > > Is one generated from the other, or are they maintained separately? They’re separate. Here’s the Tcl source for the bubble diagrams: https://www.sqlite.org/docsrc/file/?name=art/syntax/bubble-generator-data.tcl …and here’s the Lemon

Re: [sqlite] lemon parser bug, %destructors directive not appended into source code

2016-08-16 Thread Richard Hipp
On 8/16/16, xiaobing wrote: > In lemon.c:ReportTable() , when " Combine duplicate destructors into a > single case ", sp2->destructor is set to 0, but later it is used in > tranlate_code to generate destructor. > so if you have grammar like this: > %destructor expr_a {

Re: [sqlite] Lemon parser

2010-04-08 Thread Chris verBurg
On Tue, Apr 6, 2010 at 10:40 PM, Dan Kennedy wrote: > > On Apr 7, 2010, at 3:23 AM, Chris verBurg wrote: > > > Hehe, okay, here I go. :) > > > > > > I'm trying to replace an existing flex/bison parser with an re2c/lemon > > parser, but I'm running into a methodological

Re: [sqlite] Lemon parser

2010-04-06 Thread Dan Kennedy
On Apr 7, 2010, at 3:23 AM, Chris verBurg wrote: > Hehe, okay, here I go. :) > > > I'm trying to replace an existing flex/bison parser with an re2c/lemon > parser, but I'm running into a methodological problem. I have a > hypothetical grammar like this: > > file ::= FOO str . > file ::= BAR

Re: [sqlite] Lemon parser

2010-04-06 Thread Chris verBurg
Hehe, okay, here I go. :) I'm trying to replace an existing flex/bison parser with an re2c/lemon parser, but I'm running into a methodological problem. I have a hypothetical grammar like this: file ::= FOO str . file ::= BAR str . Where my keywords are FOO and BAR, and str is any ol'

Re: [sqlite] Lemon parser

2010-04-06 Thread Wilson, Ronald
> I'm using the Lemon parser and running into a methodological problem that > I > wanted to ask the user base about. Is there a mailing list or forum > specifically for Lemon, or is this it? :) > > Thanks, > -Chris There is no mailing list specifically for lemon. Some of us are familiar to

Re: [sqlite] Lemon parser : compile error when using "%token_destructor" directive

2009-06-15 Thread Wilson, Ron P
9 12:54 PM To: Wilson, Ron P Cc: General Discussion of SQLite Database Subject: Re: [sqlite] Lemon parser : compile error when using "%token_destructor" directive On Mon, Jun 15, 2009 at 11:42:26AM -0400, Wilson, Ron P wrote: || It has been a while since I used lemon (big fan thoug

Re: [sqlite] Lemon parser : compile error when using "%token_destructor" directive

2009-06-15 Thread Vincent Zweije
On Mon, Jun 15, 2009 at 11:42:26AM -0400, Wilson, Ron P wrote: || It has been a while since I used lemon (big fan though). Did you resolve || this issue or do you still need help? [It appears my previous response did not get through.] Looks suspiciously like this problem, which was fixed in

Re: [sqlite] Lemon parser : compile error when using "%token_destructor" directive

2009-06-15 Thread Wilson, Ron P
It has been a while since I used lemon (big fan though). Did you resolve this issue or do you still need help? RW Ron Wilson, Engineering Project Lead, 434.455.6453 HARRIS CORPORATION | RF Communications Division assuredcommunications(tm) -Original Message- From:

Re: [sqlite] Lemon Parser - Modular & Extensible ?

2007-06-19 Thread Christian Smith
Uma Krishnan uttered: Hey, There's no need to be offensive. I did not mean to be critical. Far from it, it does a great a job (far more than I'm capable of producing). What I was trying to find out was, if it is possible for a .y files to be broken such that it can be built on top on other .y

Re: [sqlite] Lemon Parser - Modular & Extensible ?

2007-06-18 Thread Uma Krishnan
Hey, There's no need to be offensive. I did not mean to be critical. Far from it, it does a great a job (far more than I'm capable of producing). What I was trying to find out was, if it is possible for a .y files to be broken such that it can be built on top on other .y files. Not sure

Re: [sqlite] Lemon Parser - Modular & Extensible ?

2007-06-18 Thread Christian Smith
Uma Krishnan uttered: Hello: Is lemon parser modular and extensible? Extensible to do what? It generates parsers, and is self contained. It does a single job, and does it well. What more could you ask for? Thanks Uma Asif Lodhi <[EMAIL PROTECTED]> wrote: Hi Everybody, I have

RE: [sqlite] Lemon parser generator question

2007-05-04 Thread Medi Montaseri
Thanks again Ulrik...the problem was with the tokenizer and not the parser... Medi -Original Message- From: Medi Montaseri [mailto:[EMAIL PROTECTED] Sent: Friday, May 04, 2007 5:14 PM To: sqlite-users@sqlite.org Subject: RE: [sqlite] Lemon parser generator question Thanks Ulrik...I am

RE: [sqlite] Lemon parser generator question

2007-05-04 Thread Medi Montaseri
Thanks Ulrik...I am now looking for the lexer... Medi -Original Message- From: Ulrik Petersen [mailto:[EMAIL PROTECTED] Sent: Friday, May 04, 2007 4:30 PM To: sqlite-users@sqlite.org Subject: Re: [sqlite] Lemon parser generator question Medi, Lemon is a parser, not a lexer

Re: [sqlite] Lemon parser generator question

2007-05-04 Thread Ulrik Petersen
Medi, Lemon is a parser, not a lexer. The terminals are defined outside of Lemon. Perhaps you inherited the .y file but did not receive the lexer/tokenizer? SQLite, for example, has a hand-coded tokenizer. Other projects (such as my own) may use a lexer-generator such as flex. In

Re: [sqlite] Lemon Parser Examples - I'll show you my examples

2004-08-07 Thread sporkey
On Thu, Aug 05, 2004 at 09:07:36AM -0400, Joseph Stewart wrote: > Many thanks for your contribution! > -joe > > On Wed, 4 Aug 2004 22:02:48 -0400, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > A user earlier posted a question about terminating > > the grammer for a simple calculator done

Re: [sqlite] Lemon Parser Examples - I'll show you my examples

2004-08-06 Thread Joseph Stewart
Many thanks for your contribution! -joe On Wed, 4 Aug 2004 22:02:48 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > A user earlier posted a question about terminating > the grammer for a simple calculator done with lemon. > > I ran into the same problem and had to use > the following,