Skip to main content

Module parser

Module parser 

Source
Expand description

SQL parser.

The parser consumes lexer tokens and builds the AST used by planning.

tokens -> statement kind
             |
             +--> CREATE / DROP
             +--> INSERT / UPDATE / DELETE
             +--> SELECT
                       |
                       +--> projection
                       +--> source table
                       +--> WHERE expression tree
                       +--> ORDER BY / LIMIT

Hematite keeps the grammar strict and explicit so later stages stay small and do not need to repair ambiguous SQL.

Structs§

Parser

Functions§

parse_condition_fragment