Report line and column numbers on parse errors

We keep track of the current line and column during lexing.  Unfortunately, the
error won't be raised until the lexer has passed the token creating the error.
We should probably store the previous position to provide a more meaningful
location to the user.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
query-lexer.l: Fixed typo causing []\^_` to be matched in identifiers

Instead of "A-Za-z", the rule said "A-za-z".

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
Use [] in array type names, specifically TIME_FLOAT4 and OFFSET_SCORE

Also rename the internal enums to reflect the fact that these types are arrays.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
doc/ca-sql.1: Fixed bad wording

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
doc/ca-sql.1: Document math functions

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>