Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Renamed most rules starting with select_ to the names used in the SQL standard, <query expression>, <query expression body>, <query term>, <query primary> and <subquery>, respectively. - Added %expect 0 - The previous rule for UNION/INTERSECT syntax was right-recursive, and so the parse tree is right-deep. This patch only changes the rule, you don't want right-recursion in an LALR parser, and moreover it's not standard. It doesn't change the parse tree structure, so we need an extra wrinkle to build the parse tree top-down. - Indentation follows the most common standard, found in MySQL and Postgres. Future work: INTERSECT has higher priority than UNION in the standard, but these rules give them the same priority.
- Loading branch information