aboutsummaryrefslogtreecommitdiff
path: root/tool/lemon.c
Commit message (Collapse)AuthorAge
...
* Enhance Lemon and the parser template so that it can once again build parsersdrh2016-05-24
| | | | | that have no unreachable branches. FossilOrigin-Name: 41fd46e2962ba9a1e1f6867567499d1f6f5b8372
* Lemon enhancement: avoid unnecessary reduce actions that convert onedrh2016-05-23
| | | | | non-terminal into another but have no side effects. FossilOrigin-Name: a86e782ad1aa6f5a8b2c54f9dcf0fa61960843f3
* Fix comment typos and improve clarity of presention in Lemon. The outputdrh2016-05-23
| | | | | should be identical. FossilOrigin-Name: b91a5b8297756289d45c8fce0d3399c253517eb0
* More bug fixes to Lemon identified by Kelvin Sherlock. None of thesedrh2016-04-30
| | | | | have any impact on SQLite. FossilOrigin-Name: 762bdc55f8878ee2ef65af2165a8e7fdbddf0160
* Lemon bug fix: Do not merge action routines unless their destructors aredrh2016-04-29
| | | | | | also identical. Problem and suggested fix reported on the mailing list by Kelvin Sherlock. FossilOrigin-Name: 4792d6dbba6857f74d27332dcc1468e39c767c71
* Enhance Lemon so that it reorders the reduce rules such that rules withoutdrh2016-03-16
| | | | | | | actions occur at the end and so that the first rule is number 0. This reduces the size of the jump table on the reduce switch, and helps the parser to run faster. FossilOrigin-Name: d5712f21ec758ff096a7b1bb8ed4fc5ec400ca5d
* More agressive use of /*A-overwrites-X*/ in the parser. Fix an off-by-onedrh2016-02-17
| | | | | error in parser stack overflow detection. FossilOrigin-Name: 417e777701bbf4bd67626d4ca3bc2c5d847f6cd0
* Enhance Lemon so that if reduce code contains a comment of the formdrh2016-02-17
| | | | | | "/*A-overwrites-X*/" then a LHS label A is allowed to overwrite the RHS label X. FossilOrigin-Name: 5cfe9545d478a2c500083613dd20e14b2ffce645
* Further improvements to the Lemon-generated code for yy_reduce().drh2016-02-17
| | | FossilOrigin-Name: ef95a7d6490e33a9af4bc7b4b622de7328742ca7
* In Lemon, add the ability for the left-most RHS label to be the same as thedrh2016-02-17
| | | | | LHS label, causing the LHS values to be written directly into the stack. FossilOrigin-Name: 4bb94c7c4c3cb3ccad72c2451d88684130dde845
* Fix uses of ctype functions (ex: isspace()) on signed characters in testdrh2015-10-29
| | | | | programs and in some obscure extensions. No changes to the core. FossilOrigin-Name: 34eb6911afee09e779318b79baf953f616200128
* Remove an unused local variable from Lemon.drh2015-09-08
| | | FossilOrigin-Name: fe9ffe5eed7d376f3f08c78c1ce5514c886f3479
* Minor tweaks to Lemon.drh2015-09-07
| | | FossilOrigin-Name: 986677224a8da5e79fbbd90673f1b595da89c5d6
* For the Lemon-generated parser, add a new action type SHIFTREDUCE and use itdrh2015-09-07
| | | | | to further compress the parser tables and improve parser performance. FossilOrigin-Name: 531c3974b3d586c1989cde905b2fb4681239a570
* In the "parse.out" output file from Lemon, show addition the complete textdrh2015-09-07
| | | | | of rules on reduce actions. FossilOrigin-Name: b6ffb7e471e51ff69668154ad2c8790e466c9d37
* Improved "Parser Statistics" output (the -s option) for the Lemon parserdrh2015-09-07
| | | | | generator. FossilOrigin-Name: 809503e4efcdb498d176e8c0794a5ba0882adef2
* Fix over-length source code lines in Lemon.drh2015-09-04
| | | FossilOrigin-Name: 1efece95ff8777b89558be59277732ba2a68d5ab
* Fix harmless compiler warnings seen with MSVC 2015.mistachkin2015-04-19
| | | FossilOrigin-Name: d05becd873a03a366843a34e7f4c732dd8f88c86
* Fix harmless compiler warnings in lemon.cdrh2015-03-31
| | | FossilOrigin-Name: bbe7dcda689a25860f2104804f00ba0a720c1372
* Work in progress on fixing harmless compiler warnings when using -W4 and MSVC.mistachkin2015-01-12
| | | FossilOrigin-Name: 856dd245ce037f93d5ae2ddeb4fdf949c1e5c8e9
* Enhance the "lemon" executable so that it ignores -f, -W, -O, and -Idrh2015-01-01
| | | | | | | command-line options. This permits most of the same options that are passed to the compiler to also be harmlessly passed to lemon, and thus simplifies makefiles. FossilOrigin-Name: da408d128b4301d9fc7a3a00f219dce7ed48bc60
* Modify the %nonassoc directive in lemon so that it generates a run-timedrh2014-06-09
| | | | | | | error rather than a parsing conflict. This changes is due to a bug report on the mailing list. SQLite does not use the %nonassoc directive in its grammar so this change does not affect SQLite. FossilOrigin-Name: 1925f3a0a2caa709569df015a8e0d26412f1a9ff
* Fix harmless compiler warning in LEMON.mistachkin2014-01-14
| | | FossilOrigin-Name: f61a70589ac7e05008a362bd9d5b7bde5d07a758
* In LEMON, limit the size of the grammar file to 100MB. This ensures thatdrh2014-01-11
| | | | | | the program will never experience integer overflow. To be doubly sure, use calloc() instead of malloc() when allocating arrays. FossilOrigin-Name: 29ba458d849ad8864711cbe59fb10447a947e06a
* Add the "%token_class" directive to the LEMON parser generator. This opens updrh2014-01-11
|\ | | | | | | | | | | | | | | the possibility of simplifying the parser. Also remove all calls to sprintf(), strcpy(), and strcat() from LEMON to avoid compiler warnings on OpenBSD. (Aside: It is this change to avoid harmless compiler warnings that was the cause of the reason spat of bugs.) FossilOrigin-Name: 8eb48c04bd0a14031488b3160fde67307eb8b35d
| * In LEMON, fix a bug in the text formatter introduced by the previousdrh2014-01-11
| | | | | | | | | | | | commit. Also add the new "%token_class" directive for defining symbolic names that stand any one of a collection of tokens. FossilOrigin-Name: da7890ca6b1d8e511377a469047120220e8c3b2d
| * Do not use sprintf(), strcpy() or strcat() in the implementation of thedrh2014-01-10
|/ | | | | lemon parser generator tool, to avoid compiler warnings in OpenBSD. FossilOrigin-Name: e43c522dde01e134f1adc94f534d2b3eda74afc2
* Fix a harmless compiler warning in lemon.c.drh2013-10-11
| | | FossilOrigin-Name: 62959c0ce3a2c486ebd82e6511efad0412b944a0
* In the lemon parser generator, change all hashes to unsigned to avoiddrh2013-10-02
| | | | | potential problems with signed integer overflow. FossilOrigin-Name: 8d399a03de63c15908d63ed69140ee15c6275b8d
* Remove tab characters from source code files. Replace them with spaces.drh2012-08-20
| | | FossilOrigin-Name: 7edd10a960d5ff121e470b0549b0aa9fb7760022
* In Lemon, when comparing the output to the *.h file to see if it has changed,drh2012-06-16
| | | | | | make sure that the proposed new output and the preexisting output are the same size before deciding that they are the same. FossilOrigin-Name: 0c2fb18d25217ada7e75dcab8b342bbc632875d8
* Fix a typecast problem in lemon that could cause problems on 64-bit machines.drh2012-04-18
| | | FossilOrigin-Name: 4a5641cc0aa4c49762f4fe73dab4a6612631c0d2
* Cosmetic changes to lemon. No changes to core functionality nor impact ondrh2012-01-09
| | | | | SQLite. FossilOrigin-Name: 393fc78a18004c839d889de2a25ec046ad6f13fc
* Fix a bug in lemon in computation of which non-terminals can generate andrh2012-01-07
| | | | | | | empty string. This bug and the fix make absolutely no difference for the grammar used by SQLite, but it can make a difference when lemon is used in other grammars. FossilOrigin-Name: ce32775b232da894343f62deefaf19b0ec484636
* Fix a total unimportant file descriptor leak in lemon. This is to silencedrh2011-08-30
| | | | | warning messages. FossilOrigin-Name: e95cf2c576dda656c0f31eeec3d98e911b9003a1
* Fix compiler warnings in lemon by removing some of the code added bydrh2011-06-20
| | | | | Ryan Gordon in [1e8b842039cc0]. FossilOrigin-Name: 76b18b2be072b9ea242df4c9535059f7b43f564b
* Add a missing check for out-of-memory in the lemon code generator.drh2011-06-02
| | | FossilOrigin-Name: efb20b9da6c7cb310a449cc818eaccd3d5bb4ab3
* Cherry-pick the lemon.c updates out of the lemon-update-2010 branch intodrh2010-11-23
| | | | | the trunk. FossilOrigin-Name: 1541ae3fbd7b3d471e002c0ad14e7846f7ad9415
* Improvements to the formatting of parse.out file from Lemon. Add the -r optiondrh2010-07-19
| | | | | to Lemon to disable the state sorting, making debugging easier. FossilOrigin-Name: a2eaf8294f6d3fb39548987d632e934bb5d71cc9
* Add the -p option to lemon to cause conflicts resolved by precedence rulesdrh2010-07-18
| | | | | to appear in the parse.out file. FossilOrigin-Name: fb6a59b0a905ddea071948f9a527483a1b1b219f
* Fixed compiler warning on Visual Studio.icculus2010-03-03
| | | FossilOrigin-Name: 83495128c820e963c70d11c3196f81d8cf01f867
* Whoops, that shouldn't have been in the merge. Removed buggy code.icculus2010-03-03
| | | FossilOrigin-Name: 643728003218c9841425dffb6fe506763859fd37
* Use Strsafe() instead of strdup(). Fixes Visual Studio complaining.icculus2010-03-03
| | | FossilOrigin-Name: 89d8f98ea6d4d8bf871e08a8d8d1f0d2fd11aec1
* Merged trunk to lemon-update-2010 branch.icculus2010-03-03
| | | FossilOrigin-Name: 88b466bae47d006c48eff42ab271f05ff56d5ed1
* Repore error if the grammar has multiple %type lines for the same nonterminal.icculus2010-02-17
| | | FossilOrigin-Name: 721f33e7221c5fc907e9e293ac3242843f4fcfb7
* Fixed % formatting in some printf-style strings.icculus2010-02-17
| | | FossilOrigin-Name: f96add898f096cfc1e435c625ce74093d790b3c7
* Corrected error message (cut-and-paste bug).icculus2010-02-17
| | | FossilOrigin-Name: b3839f2aad00844c578d496c40481a39c018e4f6
* Removed unused variables.icculus2010-02-17
| | | FossilOrigin-Name: ca570a02f5c5215098050de4eb551b2dcd11b1fd
* Removed %expect directive, on drh's advice.icculus2010-02-16
| | | FossilOrigin-Name: b43ac3309e77dc8ea2952bf62da6eaad5aef6653
* Patched to compile. Accidentally removed va_list declaration.icculus2010-02-16
| | | FossilOrigin-Name: 673d470c0c14106da05461d355a0c09e5f62851d