-- mode: markdown; coding: utf-8-unix; --
CL-HTSQL - An implementation of HTSQL.
Copyright (C) 2015 Olof-Joachim Frahm
Release under a Simplified BSD license.
This library firstly provides a parser for the HTSQL syntax, with some features that make it more useful for the Common Lisp environment; however these can be turned off if one-to-one compatibility is required. The result of a parse is a syntax tree consisting of S-expressions, keywords and literals (as strings and/or parsed).
This tree may also be rendered back into string format with a pretty printer.
Secondly, a translation of queries to the CLSQL library is provided. Again, some particular additional features are provided and some features may be missing.
PARSE-HTSQL-QUERY to get back a raw syntax tree:
> (parse-htsql-query "/x.y.z") => (:COLLECT (:COMPOSE (:COMPOSE (:IDENTIFIER "x") (:IDENTIFIER "y")) (:IDENTIFIER "z")))