Skip to content

Commit

Permalink
make PGQ arrows undivisble and remove the need for a spece between ->…
Browse files Browse the repository at this point in the history
… and *

- add new lexical symbols for <- and <->
- reshape the pgq.y grammar rules to use these
  • Loading branch information
peter authored and peter committed Nov 18, 2024
1 parent 2b8d592 commit f27ad97
Show file tree
Hide file tree
Showing 8 changed files with 361,190 additions and 455,152 deletions.
4 changes: 2 additions & 2 deletions third_party/libpg_query/grammar/grammar.y
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
%token <str> IDENT FCONST SCONST BCONST XCONST Op
%token <ival> ICONST PARAM
%token TYPECAST DOT_DOT COLON_EQUALS EQUALS_GREATER INTEGER_DIVISION POWER_OF LAMBDA_ARROW DOUBLE_ARROW
%token LESS_EQUALS GREATER_EQUALS NOT_EQUALS
%token LESS_EQUALS GREATER_EQUALS NOT_EQUALS ARROW_LEFT ARROW_BOTH

/*
* If you want to make any keyword changes, update the keyword table in
Expand Down Expand Up @@ -108,7 +108,7 @@
%nonassoc SET /* see */
%left UNION EXCEPT
%left INTERSECT
%left LAMBDA_ARROW DOUBLE_ARROW
%left LAMBDA_ARROW DOUBLE_ARROW ARROW_LEFT ARROW_BOTH
%left OR
%left AND
%right NOT
Expand Down
Loading

0 comments on commit f27ad97

Please sign in to comment.