mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
Setup operator precedence for parser to avoid ambiguity and fix shift/reduce warnings
This commit is contained in:
@@ -50,25 +50,28 @@ struct sql_context;
|
||||
|
||||
|
||||
%%
|
||||
select { return SELECT; }
|
||||
select { return SELECT; }
|
||||
from { return FROM; }
|
||||
connect { return CONNECT; }
|
||||
disconnect { return DISCONNECT; }
|
||||
to { return TO; }
|
||||
list { return LIST; }
|
||||
where { return WHERE; }
|
||||
tables { return TABLES; }
|
||||
table { return TABLE; }
|
||||
tables { return TABLES; }
|
||||
table { return TABLE; }
|
||||
describe { return DESCRIBE; }
|
||||
and { return AND; }
|
||||
or { return OR; }
|
||||
not { return NOT; }
|
||||
is { return IS; }
|
||||
null { return NUL; }
|
||||
"=" { return EQ; }
|
||||
(<=) { return LTEQ; }
|
||||
(>=) { return GTEQ; }
|
||||
"<" { return LT; }
|
||||
">" { return GT; }
|
||||
like { return LIKE; }
|
||||
limit { return LIMIT; }
|
||||
limit { return LIMIT; }
|
||||
count { return COUNT; }
|
||||
strptime { return STRPTIME; }
|
||||
[ \t\r] ;
|
||||
|
||||
Reference in New Issue
Block a user