[x] Added new lexer with improved tokens. Now these tokens track:
lines and columns for each token.
original and modified contents.
[x] Added new parser with support for both named and unamed queries.
[x] Improved compiler errors. Now they show:
line and columns where errors occur.
surrounding lines containing the error.
[x] Added missing tests for the runners.
This changes:
[x] fixes #25
The new lexer adds support for strings like :=
The docs now refer to Optional Fragments instead of Optional Parameters.
[x] Partially fixes #27: it does not add support for strings in the macro defqueries/1, but the same functionality is accessible via the module AyeSQL.Compiler.
[x] Fixes #17: by adding the example from the issue into the docs.
This PR adds several improvements to the parser:
This changes:
:=
Optional Fragments
instead ofOptional Parameters
.defqueries/1
, but the same functionality is accessible via the moduleAyeSQL.Compiler
.