A simple thread-safe query parser generated by flex and bison
This is a simple query parser generated by flex and bison that recognizes logic queries like:
- this AND that
- this OR that
- this AND NOT that
- NOT (this AND that)
You need libfl-dev(under Ubuntu) to compile this project.
- $ mkdir build
- $ cd build
- $ cmake ..
- $ make
This is a toy project. I tried three methods to build a query parser. You can find the other two:
- SimpleQueryParser : A simple query parser generated by flex and bison (C Language)
- SimpleQueryParserSpirit : A simple query parser written in Boost.Spirit (C++ Language)
Most part of source code comes from Flex Bison C++ Template/Example.