Perplex, Lemon, and Re2c: A cross-platform lexer/parser replacement for flex and bison
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmake
lemon
perplex
re2c
CMakeLists.txt
COPYING
README.md
lemon.dist
perplex.dist
re2c.dist

README.md

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