diff --git a/.gitignore b/.gitignore index c1119a3..8e2c8e2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ node_modules package-lock.json *.log *.swp -dist/parser/sqlParser.js +dist/parser/* diff --git a/src/sqlParser.jison b/src/sqlParser.jison index 4a8efbc..9e78b83 100644 --- a/src/sqlParser.jison +++ b/src/sqlParser.jison @@ -99,6 +99,7 @@ UNION return 'UNION' "~" return '~' "!=" return '!=' "!" return '!' +"||" return '||' "|" return '|' "&" return '&' "+" return '+' @@ -365,6 +366,7 @@ simple_expr ; bit_expr : simple_expr { $$ = $1 } + | bit_expr '||' bit_expr { $$ = { type: 'BitExpression', operator: '||', left: $1, right: $3 } } | bit_expr '|' bit_expr { $$ = { type: 'BitExpression', operator: '|', left: $1, right: $3 } } | bit_expr '&' bit_expr { $$ = { type: 'BitExpression', operator: '&', left: $1, right: $3 } } | bit_expr '<<' bit_expr { $$ = { type: 'BitExpression', operator: '<<', left: $1, right: $3 } } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy