/baffledCitrus

Perplex, Lemon, and Re2c: A cross-platform lexer/parser replacement for flex and bison

Primary LanguageCOtherNOASSERTION

baffledCitrus

A cross-platform (Linux/OSX/Windows/etc) lexer/parser generator replacement for lex/flex and yacc/bison

  • Lemon: an LALR(1) parser generator from SQLite
  • re2c: a tool for writing very fast and very flexible scanners
  • Perplex: a simple tool to simplify the creation of scanners using re2c

This combination is used in BRL-CAD as a replacement for flex and bison.

Compiling

Requires: CMake >= 2.8, C/C++ compiler (MSVC, GCC, Clang, etc)

On Windows, use CMake-GUI. On other OSes, use CMake-GUI or type the following:

cd baffledCitrus
mkdir build
cd build
cmake ..
make

Other Code Generators

Syntax checkers