← Back to team overview

hacksql team mailing list archive

Parser issues?

 

Felipe,

While trying to use the parser, I am getting the following errors:

Parsing query select campo from tabela;
Error: syntax error, unexpected $undefined, expecting $end

Parsing query select sqrt from xpto;
Error: syntax error, unexpected $undefined, expecting $end

Parsing query create table oie;
Error: syntax error, unexpected T_TABLE

Are you facing the same errors, or did I compile the parser incorrectly?

Higor,

Are you planning on adding the parser to the Makefile? Right now I am
compiling the server manually to link against the parser:
gcc hacksqld.c ../../hacksql/hs_sql_scanner.o ../../hacksql/hs_sql_parser.o
-o hacksqld2 -I../../

Gambiarra nao! Ajuste tecnico para minhas necessidades :)

I'll probably be sleeping when you read this, so reply when you can :)

Thanks!

Henrique

Follow ups