[sqlite] lemon - %wildcar

2014-07-26 Thread Sylvain Pointeau
Hello, I would like to know if %wildcard is an undocumented feature on purpose, is this safe to use it? if yes, could it be added in the documentation? ps: I am pretty impressed by lemon, I am really having fun. Best regards, Sylvain ___ sqlite-users

Re: [sqlite] lemon - %wildcar

2014-07-26 Thread Richard Hipp
On Sat, Jul 26, 2014 at 11:10 AM, Sylvain Pointeau sylvain.point...@gmail.com wrote: Hello, I would like to know if %wildcard is an undocumented feature on purpose, is this safe to use it? Historical note: I wrote Lemon back in the 80s (on a Sun3, IIRC) because the $1,$2,$3 notation of

Re: [sqlite] lemon - %wildcar

2014-07-26 Thread Sylvain Pointeau
Hello, Le samedi 26 juillet 2014, Richard Hipp d...@sqlite.org a écrit : Historical note: I wrote Lemon back in the 80s (on a Sun3, IIRC) You were a visionary, Lemon is probably the only viable option for a parser generator in C/C++ at this moment. because the $1,$2,$3 notation of Yacc

Re: [sqlite] (Lemon) (Patch) adding a -f option to Lemon to emit function prototypes

2013-01-09 Thread Tiago Rodrigues
I see; well, that's unfortunate. At any rate, parsing lempar.c will probably be much more complex than the code I have now, which solves a simple (but common) case. Maybe I'll look into parsing lempar.c, but since this solves my use case, I probably won't be in a hurry to do it. I apologise to

Re: [sqlite] (Lemon) (Patch) adding a -f option to Lemon to emit function prototypes

2013-01-07 Thread Tiago Rodrigues
Oops, Dominique alerted me to the fact that the patch I included was stripped by the listserver... I'm including it inline, then. (Begin patch) --- lemon.c2013-01-04 20:39:20 + +++ lemon-new.c2013-01-04 23:09:59 + @@ -109,7 +109,7 @@ void Reprint(struct lemon *); void

Re: [sqlite] (Lemon) (Patch) adding a -f option to Lemon to emit function prototypes

2013-01-07 Thread Richard Hipp
On Mon, Jan 7, 2013 at 4:18 PM, Tiago Rodrigues wtrm...@gmail.com wrote: Oops, Dominique alerted me to the fact that the patch I included was stripped by the listserver... I'm including it inline, then. This patch does not work in the general case. I don't doubt that it works for your use

[sqlite] (Lemon) (Patch) adding a -f option to Lemon to emit function prototypes

2013-01-05 Thread Tiago Rodrigues
Hello, all, First, forgive me if this is the wrong medium for submitting this, but I'm rather new at this patch submission business. Anyway, I was using Lemon to generate a few parsers for a program I'm writing (which uses SQLite, too, for storage), and I noticed that the files I used to call

[sqlite] Lemon: Non-terminal destructors and cleanup

2012-10-18 Thread Ben
Hi list, I'm having a little trouble getting my head around memory management within a Lemon-generated parser. Specifically the part of the docs stating when a destructor will or will not be called. For example, this is a portion of a grammar based on the SQLite parse.y file: columnName ::=

Re: [sqlite] Lemon: Non-terminal destructors and cleanup

2012-10-18 Thread Richard Hipp
On Thu, Oct 18, 2012 at 3:03 PM, Ben sqlite_l...@menial.co.uk wrote: Hi list, I'm having a little trouble getting my head around memory management within a Lemon-generated parser. Specifically the part of the docs stating when a destructor will or will not be called. For example, this is a

Re: [sqlite] Lemon: Non-terminal destructors and cleanup

2012-10-18 Thread Ben
On 18 Oct 2012, at 20:07, Richard Hipp d...@sqlite.org wrote: On Thu, Oct 18, 2012 at 3:03 PM, Ben sqlite_l...@menial.co.uk wrote: Hi list, I'm having a little trouble getting my head around memory management within a Lemon-generated parser. Specifically the part of the docs stating

Re: [sqlite] Lemon: broken lookahead propagation?

2012-01-08 Thread Vincent Zweije
On Sat, Jan 07, 2012 at 10:18:12AM -0500, Richard Hipp wrote: || On Wed, Jan 4, 2012 at 11:00 AM, Vincent Zweije vinc...@zweije.nl wrote: || || I may have hit a bug in the lemon parser generator. || || || Please see if the following fix clears your problem: || ||

Re: [sqlite] Lemon: broken lookahead propagation?

2012-01-07 Thread Richard Hipp
On Wed, Jan 4, 2012 at 11:00 AM, Vincent Zweije vinc...@zweije.nl wrote: I may have hit a bug in the lemon parser generator. Please see if the following fix clears your problem: http://www.sqlite.org/src/info/ce32775b23 It looks like lookahead symbols aren't propagated properly, in

[sqlite] Lemon: broken lookahead propagation?

2012-01-04 Thread Vincent Zweije
I may have hit a bug in the lemon parser generator. It looks like lookahead symbols aren't propagated properly, in some cases. The consequence is that in some states, valid symbols are rejected with a syntax error. The complete grammar can be found at http://www.zweije.nl/~vzweije/parser.y

[sqlite] Lemon and errors

2011-03-17 Thread Igmar Palsenberg
Hi, I'm attempting to rewrite a buggy hand-written parser with a re2c / lemon one. I've ran into a strange thing (which is/was actually a bug in the lexer), but I can't determine why lemon finishes parsing, instead of throwing up a parser error. The stripped-down parser : [igmar@devel

Re: [sqlite] Lemon behavior

2010-12-15 Thread Christian Smith
On Tue, Dec 07, 2010 at 08:09:53PM +0100, Begelman, Jamie wrote: I'm using Lemon for a non-sqlite related project and it is exiting with an assertion failure that I would like to understand. I have extracted the following small set of productions from a larger grammar. The list production

[sqlite] Lemon behavior

2010-12-07 Thread Begelman, Jamie
I'm using Lemon for a non-sqlite related project and it is exiting with an assertion failure that I would like to understand. I have extracted the following small set of productions from a larger grammar. The list production happens to be the start symbol in the larger grammar. list::=

Re: [sqlite] Lemon maintainer

2010-10-12 Thread Richard Hipp
On Tue, Oct 12, 2010 at 6:54 PM, Vincent Adam Burns discol...@gmail.comwrote: Is there an active maintainer for the Lemon Parser? I'm getting some parsing conflicts, ex: statement ::= IF LEFT_PAREN expression RIGHT_PAREN statement ELSE statement. statement ::= IF LEFT_PAREN expression

[sqlite] lemon-generated parser cooperation with a scanner not under my control

2010-06-02 Thread Aspra Flavius Adrian
Hi How could I force lemon assign a specific major number to a terminal? I need that in order to make a lemon-generated parser work together with an already existing scanner which is not under my control, and I'd like not to fall back to manual translation. Actually manual translation would

Re: [sqlite] Lemon parser

2010-04-08 Thread Chris verBurg
On Tue, Apr 6, 2010 at 10:40 PM, Dan Kennedy danielk1...@gmail.com 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 problem. I have

[sqlite] Lemon parser

2010-04-06 Thread Chris verBurg
Hey guys, 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 ___ sqlite-users mailing list

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 various

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 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 str .

[sqlite] lemon mods

2010-03-02 Thread Wilson, Ronald
With all the good changes to lemon recently, I thought I'd post changes that I have made to my personal copy.  One of my customers requires that I demonstrate the version of all build tools I use at build time, so I added a few command line parameters to help with that. It would be nice if the

[sqlite] [Lemon] Jump to %syntax_error

2010-02-22 Thread Igmar Palsenberg
Hi, Can I somehow simulate a syntax error from within a rule action ? This parser looks up the token it receives, and I want to abort futher parsing in case that the lookup fails. as if there was a syntax error in the grammar. Regards, Igmr

[sqlite] lemon: error handling

2009-12-22 Thread Benjamin Peterson
I'm using lemon to write a parser for a little language I'm writing. I'm wondering how I indicate to lemon that an error has occurred in processing and an exit is needed. For example, if I have: stmt(A) ::= NAME(B). { A = malloc(sizeof(stmt)); A-name = B; } If malloc returns NULL, what should I

Re: [sqlite] lemon: error handling

2009-12-22 Thread D. Richard Hipp
On Dec 22, 2009, at 6:06 PM, Benjamin Peterson wrote: I'm using lemon to write a parser for a little language I'm writing. I'm wondering how I indicate to lemon that an error has occurred in processing and an exit is needed. For example, if I have: stmt(A) ::= NAME(B). { A =

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

2009-06-15 Thread Wilson, Ron P
-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of ferrety ferrety Sent: Monday, June 08, 2009 7:15 PM To: sqlite-users@sqlite.org Subject: [sqlite] Lemon parser : compile error when using %token_destructor directive Hi List, This is the only place I found to ask

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

2009-06-15 Thread Vincent Zweije
|| Subject: [sqlite] Lemon parser : compile error when using %token_destructor directive || || Hi List, || This is the only place I found to ask for lemon parser error. || || When trying to use the %token_destructor directive: || || %include { || #include stdio.h || void token_dtor (struct Token * t

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

2009-06-15 Thread Wilson, Ron P
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 though). Did you resolve

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

2009-06-08 Thread ferrety ferrety
Hi List, This is the only place I found to ask for lemon parser error. When trying to use the %token_destructor directive: %include { #include stdio.h void token_dtor (struct Token * t) { fprintf(stderr, In token_destructor: t - value=%s\n, t - value); } } %token_destructor {

Re: [sqlite] Lemon: Functionality like Bison's %error-verbose / Access to last follow set from %syntax_error

2008-08-18 Thread D. Richard Hipp
On Aug 17, 2008, at 1:48 PM, Markus Thiele wrote: Greetings, I've been using Lemon for a small custom compiler project. I've used Bison before, and I very much prefer the way Lemon does things, there's just one feature I'm missing and haven't been able to find. Bison generates a human

Re: [sqlite] Lemon: Functionality like Bison's %error-verbose / Access to last follow set from %syntax_error

2008-08-18 Thread Markus Thiele
Greetings, Lemon does not have any feature that will provide the application with access to the follow-set. You could perhaps tease that informatino out of the *.out output file using a script, though. Capital idea! That does indeed do the trick. It's straightforward to extract the

[sqlite] Lemon: Functionality like Bison's %error-verbose / Access to last follow set from %syntax_error

2008-08-17 Thread Markus Thiele
Greetings, I've been using Lemon for a small custom compiler project. I've used Bison before, and I very much prefer the way Lemon does things, there's just one feature I'm missing and haven't been able to find. Bison generates a human readable error message on syntax errors, and when setting

Re: [sqlite] Lemon

2008-06-28 Thread Arjen Markus
Hi, Can u send me any documentation on LEMON that u have worked out. I have some queries also. 1.Does LEMON work on Windows environment? 2.I tried but it is not.I heard that it works on Linux environment.I am trying to know why not on windows...can u give me some info about it I am

Re: [sqlite] Lemon

2008-06-28 Thread arjunkumar keerti
Hi Arjen, Thanks for the mail...I found it very helpful and i started to execute it..I succeeded in doing it... However i started writing a sample program for converting Infix to Prefix...I am struck at this point ...so can u help me in writing this program... Thanks in advance

Re: [sqlite] Lemon

2008-06-26 Thread Arjen Markus
arjunkumar keerti wrote: Hi, I found in wikipedia that Lemon parser is a part of SQLite project but i couldn't found any sort of information regarding to LEMON. Can u give me any documentation regarding how to install it and how to work for some programs on Lemon parser generator or any URL's

[sqlite] Lemon

2008-06-25 Thread arjunkumar keerti
Hi, I found in wikipedia that Lemon parser is a part of SQLite project but i couldn't found any sort of information regarding to LEMON. Can u give me any documentation regarding how to install it and how to work for some programs on Lemon parser generator or any URL's that might be helpful and can

Re: [sqlite] Lemon: Conflicts with repeated TERMINALS

2007-11-29 Thread Ralf Junker
Many thanks, Joe, Your grammar is ambiguous. The text tokens run together for various rules because the grammar lacks clear separators between them. OK, I begin to understand. The clear separators need to be TERMINALs, right? I believed that these were imlicit because there are TEXT and LINK

Re: [sqlite] Lemon: Conflicts with repeated TERMINALS

2007-11-29 Thread Joe Wilson
--- Ralf Junker [EMAIL PROTECTED] wrote: paragraph ::= PARA text. I observed the new PARA terminal token (the clear separator!?). Unfortunately the lexer does not generate such a token. Paragraph repeats are also removed. It was just an HTML-like example. I just wanted to demonstrate one

Re: [sqlite] Lemon: Conflicts with repeated TERMINALS

2007-11-29 Thread Ralf Junker
Joe Wilson [EMAIL PROTECTED] wrote: The following grammar may be clearer to you: Yes, it is many thanks! I believe I am making progress! At least I can see the picture much clearer now and was able to come up with the following grammar with just one conflict unsolved: %left NEWLINE.

[sqlite] Lemon: Conflicts with repeated TERMINALS

2007-11-28 Thread Ralf Junker
I am trying to write a Wiki parser with Lemon. The Lemon features suite my needs perfectly, but I am unfortunately stuck with the problem of parsing conflicts. All conflicts seem caused by repeat constructs like this: text ::= textpiece. text ::= text textpiece. The complete grammar

Re: [sqlite] Lemon: Conflicts with repeated TERMINALS

2007-11-28 Thread Joe Wilson
--- Ralf Junker [EMAIL PROTECTED] wrote: article ::= blocks. blocks ::= block. blocks ::= blocks block. block ::= heading. block ::= paragraph. heading ::= HEADING_START text HEADING_END. heading ::= HEADING_START text. heading ::= HEADING_START. paragraph ::= text NEWLINE.

[sqlite] Lemon problem

2007-11-18 Thread Téragone
Hello, I have a problem with a rule of a small calculator which accept variables : assignment(A) ::= VARIABLE(C) EQUAL expr(B). I can set variable with simple value or expression like : a=2 b=2+3 but when I try : c=a+b The result is put in variable b instead of c. Is it my bug or a Lemon bug

Re: [sqlite] Lemon problem

2007-11-18 Thread Joe Wilson
It's most likely your bug. Just add some debug prints in your grammar and tokenizer to see what's going on. See also: ParseTrace() in http://www.hwaci.com/sw/lemon/lemon.html --- Téragone [EMAIL PROTECTED] wrote: I have a problem with a rule of a small calculator which accept variables :

Re: [sqlite] Lemon problem

2007-11-18 Thread Téragone
Hello, I finally find the bug. In fact that was many bugs. - Grammar rule order. - Input string not reseted properly. Thank you. David On Nov 18, 2007 10:30 AM, Joe Wilson [EMAIL PROTECTED] wrote: It's most likely your bug. Just add some debug prints in your grammar and tokenizer to see

Re: [sqlite] Lemon not reducing

2007-11-06 Thread Gaspard Bucher
For those reading this thread, I could solve my problme by using ragel (http://www.cs.queensu.ca/~thurston/ragel/). You can define leaving actions but also 'any change' actions. It was also easier to include in a C++ project then lemon/flex. If my grammar becomes more complicated, I heard it is

Re: [sqlite] Lemon not reducing

2007-10-25 Thread Gaspard Bucher
I do not understand why lemon waits for one more token when it has enough information to reduce ... I don't think you can. Why do you want to? Why not just go ahead and send it the next token? Most people find a way around this problem using white-space. This could be a solution

[sqlite] Lemon not reducing

2007-10-24 Thread Gaspard Bucher
I do not understand why lemon waits for one more token when it has enough information to reduce. I want to recognize : foo = Bar() when the token CLOSE_PAR is received, not when an extra token is parsed. How can I avoid lemon waiting for the extra token before reducing ? Thanks for your help !

Re: [sqlite] Lemon not reducing

2007-10-24 Thread drh
Gaspard Bucher [EMAIL PROTECTED] wrote: I do not understand why lemon waits for one more token when it has enough information to reduce. I want to recognize : foo = Bar() when the token CLOSE_PAR is received, not when an extra token is parsed. How can I avoid lemon waiting for the extra

Re: [sqlite] Lemon not reducing

2007-10-24 Thread Gaspard Bucher
Gaspard Bucher [EMAIL PROTECTED] wrote: I do not understand why lemon waits for one more token when it has enough information to reduce. I want to recognize : foo = Bar() when the token CLOSE_PAR is received, not when an extra token is parsed.. How can I avoid lemon waiting for

Re: [sqlite] Lemon not reducing

2007-10-24 Thread Gaspard Bucher
PS: There is another reason, aside from aesthetics and simpler grammar to filter white spaces inside the tokenizer: you avoid all the parser conflicts you could get with empty | or space rules. 2007/10/24, Gaspard Bucher [EMAIL PROTECTED]: Gaspard Bucher [EMAIL PROTECTED] wrote: I do not

Re: [sqlite] Lemon not reducing

2007-10-24 Thread Grzegorz Makarewicz
Gaspard Bucher wrote: PS: There is another reason, aside from aesthetics and simpler grammar to filter white spaces inside the tokenizer: you avoid all the parser conflicts you could get with empty | or space rules. 2007/10/24, Gaspard Bucher [EMAIL PROTECTED]: Gaspard Bucher [EMAIL

[sqlite] Lemon: Help on conflic resolution?

2007-10-17 Thread Ralf Junker
I am writing to ask for help about how to solve The Lemon parser conflicts. As part of a larger grammar, I am need to implement this regular expression in Lemon: (.+|'.+')+ I tried lots of grammars, but all of them generated Lemon warnings. Maybe someone could have a look at the grammar

Re: [sqlite] Lemon: Help on conflic resolution?

2007-10-17 Thread drh
Ralf Junker [EMAIL PROTECTED] wrote: I am writing to ask for help about how to solve The Lemon parser conflicts. As part of a larger grammar, I am need to implement this regular expression in Lemon: (.+|'.+')+ I tried lots of grammars, but all of them generated Lemon warnings.

Re: [sqlite] Lemon: Help on conflic resolution?

2007-10-17 Thread Ralf Junker
Richard, this helped me greatly! I also derived from your example that I can use multiple characters without conflicts like this: --- doc ::= inline_list. // List of allowed characters. Add more as you like. c ::= CHAR. c ::= SPACE. // The c character repeat. chars ::= c. chars

Re: [sqlite] Lemon: Help on conflic resolution?

2007-10-17 Thread Ralf Junker
Richard, this helped me greatly! I also derived from your example that I can use multiple characters without conflicts like this: --- doc ::= inline_list. // List of allowed characters. Add more as you like. c ::= CHAR. c ::= SPACE. // The c character repeat. chars ::= c. chars

[sqlite] Lemon Parser: Modular

2007-07-13 Thread Uma Krishnan
I had posted earlier to find if Lemon parser can be made modular. As per previous post responses, who had advised that I look in lemon parser forum. But I could not find a separate forum. Please refer to the following link to get a better idea of what I'm trying to do:

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 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 just

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

[sqlite] Lemon Parser - Modular Extensible ?

2007-06-17 Thread Uma Krishnan
Hello: Is lemon parser modular and extensible? Thanks Uma Asif Lodhi [EMAIL PROTECTED] wrote: Hi Everybody, I have just joined this mailing list as Sqlite looks like a good software solution to my needs. What I need right now is RE-assurance of crash-recovery that is

[sqlite] Lemon parser generator question

2007-05-04 Thread Medi Montaseri
Hi, Firstly, if this is not the proper forum for Lemon questions, please let me know where I need to go... Second, I am looking at a SQL grammer written for Lemon parser generator and am failing to see where some terminals are defined. For example COMMA, FROM, SELECT are terminals and

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 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 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 compile parse.y error for windows

2007-04-26 Thread drh
[EMAIL PROTECTED] wrote: then I use the command lemon parse.y I successfully get the parse.h file but the file is not right. I only get 137 ids the follwing 15 ids do not exist in the parse.h TK_TO_TEXT TK_CONST_FUNC You need to run the awk script addopcodes.awk in

[sqlite] lemon compile parse.y error for windows

2007-04-25 Thread allen . zhang
I compile the lemon.c in vc6 environment. (build it the win32 console application ) then I use the command lemon parse.y I successfully get the parse.h file but the file is not right. I only get 137 ids the follwing 15 ids do not exist in the parse.h TK_TO_TEXT TK_TO_BLOB TK_TO_NUMERIC

[sqlite] LEMON question

2007-03-13 Thread Cesar Rodas
I want to know if I can here public some LEMON PARSER examples that I have done... because as i far i know LEMON is maintained into SQLite project. Best Regards -- Cesar Rodas http://www.cesarodas.com/ Mobile Phone: 595 961 974165 Phone: 595 21 645590 [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [sqlite] Lemon example

2007-03-06 Thread Martin Jenkins
Cesar Rodas wrote: The URL is ok, I opened here... Works fine in .uk too Martin - To unsubscribe, send email to [EMAIL PROTECTED] -

[sqlite] Lemon example

2007-03-05 Thread Cesar Rodas
Here is Lemon tutorial. Shows how to make a calculator with a feature of use Parents () in math expression. http://www.cesarodas.com/2007/03/creating-basic-calculator-with-lemon.html. The author disclaims the copyright of the calculator. -- Cesar Rodas http://www.sf.net/projects/pagerank

Re: [sqlite] Lemon example

2007-03-05 Thread Clay Dowling
Cesar Rodas wrote: Here is Lemon tutorial. Shows how to make a calculator with a feature of use Parents () in math expression. http://www.cesarodas.com/2007/03/creating-basic-calculator-with-lemon.html. The author disclaims the copyright of the calculator. There's a problem with that URL.

Re: [sqlite] Lemon example

2007-03-05 Thread Cesar Rodas
The URL is ok, I opened here... try again and let me know if you could not and I will email you the content of the example. On 05/03/07, Clay Dowling [EMAIL PROTECTED] wrote: Cesar Rodas wrote: Here is Lemon tutorial. Shows how to make a calculator with a feature of use Parents () in math

RE: [sqlite] Lemon example

2007-03-05 Thread Doug Nebeker
URL didn't work for me either, but you'll see what you want at the root (at least today): http://www.cesarodas.com/ -Original Message- From: Cesar Rodas [mailto:[EMAIL PROTECTED] Sent: Monday, March 05, 2007 10:44 AM To: sqlite-users@sqlite.org Subject: Re: [sqlite] Lemon example

Re: [sqlite] lemon issue

2007-01-25 Thread Gunnar Roth
[EMAIL PROTECTED] schrieb: dear all: i am a programmer from China, i use sqlite in my project. from sqlite, i know lemon. i work on windows, using vc6.0, i am trying to do something using lemon, but i have some issues. i write a my_calculator.y file, and generate

[sqlite] LEMON

2006-12-29 Thread Cesar Rodas
Where can i find a tutorial with examples of how to use LEMON parser... because i need to build interpreted language Thanks to all -- Cesar Rodas http://www.phpclasses.org/grank (A PHP implementation of PageRank)

Re: [sqlite] LEMON

2006-12-29 Thread Lloyd
Ethereal make use of Lemon On Fri, 2006-12-29 at 11:08 -0400, Cesar Rodas wrote: Where can i find a tutorial with examples of how to use LEMON parser... because i need to build interpreted language Thanks to all __ Scanned and protected by Email scanner

Re: [sqlite] LEMON

2006-12-29 Thread Cesar Rodas
Another URL where i can find a tutorial? On 29/12/06, Lloyd [EMAIL PROTECTED] wrote: Ethereal make use of Lemon On Fri, 2006-12-29 at 11:08 -0400, Cesar Rodas wrote: Where can i find a tutorial with examples of how to use LEMON parser... because i need to build interpreted language Thanks

RE: [sqlite] LEMON

2006-12-29 Thread Downey, Shawn
Clifton Park, New York 12065 518-371-3983 x113 (work) 860-508-5015 (cell) -Original Message- From: Cesar Rodas [mailto:[EMAIL PROTECTED] Sent: Friday, December 29, 2006 11:17 AM To: sqlite-users@sqlite.org; [EMAIL PROTECTED] Subject: Re: [sqlite] LEMON Another URL where i can find a tutorial

Re: [sqlite] LEMON

2006-12-29 Thread epankoke
I'm not familiar with Lemon, so I don't know if this will help: http://linuxgazette.net/106/chirico.html. Also, I'd highly recommend just doing a Google search for either Lemon Parser or Lemon Tutorial. -- Eric Pankoke Founder / Lead Developer Point Of Light Software

Re: [sqlite] LEMON

2006-12-29 Thread Cesar Rodas
:17 AM To: sqlite-users@sqlite.org; [EMAIL PROTECTED] Subject: Re: [sqlite] LEMON Another URL where i can find a tutorial? On 29/12/06, Lloyd [EMAIL PROTECTED] wrote: Ethereal make use of Lemon On Fri, 2006-12-29 at 11:08 -0400, Cesar Rodas wrote: Where can i find a tutorial with examples

RE: [sqlite] LEMON

2006-12-29 Thread Downey, Shawn
: [sqlite] LEMON Lemon generates C files that could be compiled in Win or Linux Right? On 29/12/06, Downey, Shawn [EMAIL PROTECTED] wrote: http://www.hwaci.com/sw/lemon/lemon.html Sorry if this link has already been pointed out to you. http://www.webdotdev.com/nvd/server-side/c/lemon-parser

Re: [sqlite] lemon segfault

2006-06-12 Thread Dennis Cote
Michael Somos wrote: I found the following for lemon in the sqlite-3.3.6 distribution : === lemon -x Lemon version 1.0 lemon /dev/null Segmentation fault gdb ./lemon GNU gdb 6.4 Copyright 2005

[sqlite] lemon segfault

2006-06-09 Thread Michael Somos
I found the following for lemon in the sqlite-3.3.6 distribution : === lemon -x Lemon version 1.0 lemon /dev/null Segmentation fault gdb ./lemon GNU gdb 6.4 Copyright 2005 Free Software Foundation, Inc. GDB is free

[sqlite] Lemon grammar question

2005-06-08 Thread Ludvig Strigeus
With Bison, you can do something like this (not quite bison syntax): myrule: TYPE IDENT {DoSomethingRightAfterIdent($1,$2); } LP more_rules RP; {DoSomethingAfterEverything($1,$2,$5); } I.e. you have a chunk of C code that's called in the middle of the processing of the production. (In the above

Re: [sqlite] Lemon grammar question

2005-06-08 Thread Ulrik Petersen
Ludvig Strigeus wrote: With Bison, you can do something like this (not quite bison syntax): myrule: TYPE IDENT {DoSomethingRightAfterIdent($1,$2); } LP more_rules RP; {DoSomethingAfterEverything($1,$2,$5); } I.e. you have a chunk of C code that's called in the middle of the processing of the

[sqlite] Lemon question

2005-06-03 Thread Ludvig Strigeus
I'm using lemon to make a simple parser.I want to get more descriptive error messages. Right now, it prints Syntax error near '123'. Is there some way to make it print Syntax error near '123', expecting ';' or something similar? /Ludvig

Re: [sqlite] [sqlite-lemon] Lemon Parser Generator Tutorial

2004-08-18 Thread Serge Semashko
[EMAIL PROTECTED] wrote: Freshmeat has a tutorial on the Lemon Parser Generator. http://freshmeat.net/articles/view/1270/ This tutorial walks you through a simple calculator. It would be also interesting to have an example of using Lemon + RE2C (http://re2c.sf.net). I think RE2C lexer works

[sqlite] [sqlite-lemon] Lemon Parser Generator Tutorial

2004-08-14 Thread sporkey
Freshmeat has a tutorial on the Lemon Parser Generator. http://freshmeat.net/articles/view/1270/ This tutorial walks you through a simple calculator. Regards, Mike Chirico

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 with lemon.

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, which

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

2004-08-04 Thread sporkey
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, which worked fine: main ::= in. in ::= . in ::= in state NEWLINE. I cannot reduce it any further. For

Re: [sqlite] LEMON Examples

2004-08-03 Thread Christian Smith
On Tue, 2 Aug 2004, John Cohen wrote: in ::= in stmt ENDLINE. But that doesn't seem to work in lemon. I've also tried making the 2nd statement right recursive, but that doesn't work either because it doesn't seem to ever reduce all the way. Any ideas? Much thanks to all. Just make the

Re: [sqlite] LEMON Examples

2004-08-03 Thread D. Richard Hipp
D. Richard Hipp wrote: John Cohen wrote: The last suggestion worked great (thanks!). But still, I still have a small problem. It won't accept more than one 'statement'. I know why, but can't fix it. Take a look: $ ./a.out 7 + 9 + 7 + 3 / (5 + 7); 23.25 3 + 3 + 3; Fatal Error: Parser

Re: [sqlite] LEMON Examples

2004-08-03 Thread Joseph Stewart
I'll second sporkey, would you be able to post your calc source for us all to see? TIA, -j On Tue, 03 Aug 2004 15:38:53 -0400, John Cohen [EMAIL PROTECTED] wrote: Hi all, Thanks for all the help! I got it all working fine.. The wrapper did the trick - I also want to try some speed tests

Re: [sqlite] LEMON Examples

2004-08-02 Thread Doug Currie
Monday, August 2, 2004, 12:49:50 AM, John Cohen wrote: My problem is the fact I cannot use the start token on the right hand of the rule. [...] How can I get this to accept things such as: 5 + 5 + 5 5 + 6 ? [I have never used lemon, but perhaps something like...] expr := term | ...

Re: [sqlite] LEMON Examples

2004-08-02 Thread John Cohen
Date: Mon, 02 Aug 2004 23:51:15 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Aha! =) The last suggestion worked great (thanks!). But still, I still have a small problem. It won't accept more than one 'statement'. I know why, but can't fix it. Take a look: $ ./a.out 7 +

[sqlite] LEMON Examples

2004-07-31 Thread John Cohen
Hi, I've used bison for a while now, and gotten pretty proficient at the grammar, but hearing how LEMON has some pretty nice features (i.e. terminal destructors) I decided to try it out, but I can't even get a simple calculator to work with it. I can get the tokenizer written fine, but just

Re: [sqlite] Lemon vs. Bison speed difference/benchmarking...

2003-10-20 Thread D. Richard Hipp
Sean Chittenden wrote: Howdy. Having been fed up with bison/yacc, I switched to using lemon and have found lemon to be a vastly more enjoyable tool to work with compared to bison (thank you!). That said, before I embarked on my wholesale conversion to lemon, I went and recreated a calculator