6

All,

Developing a validating application for embedded sql

i'll use ansi c or c++ as developement language

Where do i get an sql grammar for lex and yacc?

DOK
  • 32,337
  • 7
  • 60
  • 92

2 Answers2

9

hi there is a solution in google projects yaxx:

yac file: lex file

enjoy

jmcker
  • 387
  • 4
  • 18
Aymanadou
  • 1,200
  • 1
  • 14
  • 36
  • The same problem, I want to implement as the author, but in my case there are such commands in SQL like nextval, setval, etc, is there any extension for yak and lex files for my case? (from postgresql) – maximus Mar 21 '12 at 14:09
1

There is book named "flex & bison" by John Levine (Author). in this book there is a complete chapter for sql parser. you can download this book for free here

Ray Hulha
  • 10,701
  • 5
  • 53
  • 53
Umair
  • 13
  • 1
  • 6