Skip to content

MarcelRaschke/re2c

 
 

Repository files navigation

DESCRIPTION

re2c is a free and open-source lexer generator for C and C++.

Its main goal is generating fast lexers: at least as fast as their reasonably optimized hand-coded counterparts. Instead of using traditional table-driven approach, re2c encodes the generated finite state automata directly in the form of conditional jumps and comparisons. The resulting programs are faster and often smaller than their table-driven analogues, and they are much easier to debug and understand. re2c applies quite a few optimizations in order to speed up and compress the generated code.

Another distinctive feature is its flexible interface: instead of assuming a fixed program template, re2c lets the programmer write most of the interface code and adapt the generated lexer to any particular environment.

DOCUMENTATION

Official re2c website is re2c.org.

DOWNLOAD

Release tarballs: https://github.com/skvadrik/re2c/releases

Source code:

$ git clone https://github.com/skvadrik/re2c.git
$ git clone https://git.code.sf.net/p/re2c/code-git

Github is the main repo, sourceforge is a mirror and can be slightly outdated.

BUILD

The simplest possible way to build re2c is this:

$ ./configure [--prefix=<prefix>]
$ make
$ make install

See the official documentation for full details on more sophisticated build types. If you want to build from git, you will first need to generate autotools files:

$ ./autogen.sh

MAILING LISTS

You are welcome to ask for help or share your thoughts and ideas.

BUGS

Please report any bugs and send feature requests to https://github.com/skvadrik/re2c/issues.

AUTHORS

Re2c was originally written by Peter Bumbulis [email protected]. Since then many people contributed to the project. Current maintainers are Ulya Trofimovich [email protected] and Dan Nuffer [email protected].

About

lexer generator for C/C++

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 78.9%
  • C++ 20.3%
  • Roff 0.4%
  • Haskell 0.2%
  • Shell 0.1%
  • Makefile 0.1%