toql_sql_expr_parser 0.4.0

Library with SQL expression parser for Toql
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
quoted = ${  "'" ~ ( "''" | (!"'" ~ ANY) )* ~  "'" }


name =  @{ ASCII_ALPHA ~ (ASCII_ALPHANUMERIC | "_")*   }

other_alias = @{"..."}
self_alias = @{".."}

// for sql_expr macro, allows to include other sql_expr
placeholder = @{"{}"}

aux_param = @{"<" ~ name ~ ">"}

literal = { ANY }

expr = { ( aux_param |quoted | other_alias | self_alias| placeholder |literal) ~  ( aux_param |quoted |other_alias | self_alias | placeholder |literal)*}
query = { SOI ~ expr? ~ EOI }