Re: SQL grammar

2008-05-10 Thread RichardT
Hi. Also, here is a simplified version of my bison file. You can just copy and paste it in a file and compile it with: bison -y -v -d file_name.y %token NOT IN UNION ICONST SELECT FROM SCONST %left UNION %left '+' '-' %left '*' '/' %% search_cond:NOT IN '(' exp_list ')'

SQL grammar

2008-05-10 Thread RichardT
Hello All: First off, I would like to apologize in case this post does not belong to this forum. If that is the case, please let me know if there is another forum where I can post my question. I am writing a parser to parse SQL (actually T-SQL for MS Sql Server). I am getting a shift/reduce con