Minor tweak to the SQL grammar to make the parser tables a few bytes smaller.

FossilOrigin-Name: cc4810b23e683e8c359f7c1a562338ec8501e43cac3475b2be002568fca5e6a4
This commit is contained in:
drh 2017-06-28 14:26:37 +00:00
parent 6be95366c7
commit 6559e2cec7
3 changed files with 8 additions and 9 deletions

View File

@ -1,5 +1,5 @@
C In\sthe\slemon-generated\sparser,\sstore\sthe\snumber\sof\ssymbols\son\sthe\sRHS\sof\seach\nrule\sas\sa\snegative\snumber\sand\sadd\sit\sto\sthe\sstack\spointer,\srather\sthan\sstoring\nthe\svalue\sas\sa\spositive\sand\ssubtracting\sit.\s\sThis\smakes\sthe\sparser\sfaster.
D 2017-06-28T13:47:56.467
C Minor\stweak\sto\sthe\sSQL\sgrammar\sto\smake\sthe\sparser\stables\sa\sfew\sbytes\ssmaller.
D 2017-06-28T14:26:37.622
F Makefile.in 1cc758ce3374a32425e4d130c2fe7b026b20de5b8843243de75f087c0a2661fb
F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
F Makefile.msc 8eeb80162074004e906b53d7340a12a14c471a83743aab975947e95ce061efcc
@ -395,7 +395,7 @@ F src/os_win.c 2a6c73eef01c51a048cc4ddccd57f981afbec18a
F src/os_win.h 7b073010f1451abe501be30d12f6bc599824944a
F src/pager.c 14f6982c470c05b8e85575c69e9c1712010602e20400f8670d8699e21283e0e4
F src/pager.h f2a99646c5533ffe11afa43e9e0bea74054e4efa
F src/parse.y 0513387ce02fea97897d8caef82d45f347818593f24f1bdc48e0c530a8af122d
F src/parse.y b13c9fc83cb634daf7fd5fef89127e8eafdf4904ab9a168d3e1862c5a3c7ae22
F src/pcache.c 62835bed959e2914edd26afadfecce29ece0e870
F src/pcache.h 521bb9610d38ef17a3cc9b5ddafd4546c2ea67fa3d0e464823d73c2a28d50e11
F src/pcache1.c 1195a21fe28e223e024f900b2011e80df53793f0356a24caace4188b098540dc
@ -1584,7 +1584,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
P c46d94a8cde816ca383e771721ebd4900de77950cba700e35a26f70fd5b794a4
R 80bd1b22c47b401be9abca328e50fc2b
P b362f0d8ed34839bf3b29d10ed0853ab94245fba135ccd28e619caa6ee6992d5
R 47fe456950b93480334e354c250c0848
U drh
Z b7c98ba7d5a1b85e87e71ed5f99d7f82
Z 983cf2b86c0c77a70c157e39be586b00

View File

@ -1 +1 @@
b362f0d8ed34839bf3b29d10ed0853ab94245fba135ccd28e619caa6ee6992d5
cc4810b23e683e8c359f7c1a562338ec8501e43cac3475b2be002568fca5e6a4

View File

@ -1375,8 +1375,7 @@ trigger_decl(A) ::= temp(T) TRIGGER ifnotexists(NOERR) nm(B) dbnm(Z)
}
%type trigger_time {int}
trigger_time(A) ::= BEFORE. { A = TK_BEFORE; }
trigger_time(A) ::= AFTER. { A = TK_AFTER; }
trigger_time(A) ::= BEFORE|AFTER(X). { A = @X; /*A-overwrites-X*/ }
trigger_time(A) ::= INSTEAD OF. { A = TK_INSTEAD;}
trigger_time(A) ::= . { A = TK_BEFORE; }