Re2c

re2c
Original author(s)Peter Bumbulis
Initial releasearound 1994 (1994)
Stable release
4.0 / 19 November 2024
Repositorygithub.com/skvadrik/re2c
TypeLexical analyzer generator
LicensePublic domain
Websitere2c.org

re2c is a free and open-source lexer generator for C, C++, D, Go, Haskell, Java, JavaScript, OCaml, Python, Rust, V and Zig. It compiles declarative regular expression specifications to deterministic finite automata. Originally written by Peter Bumbulis and described in his paper, re2c was put in public domain and has been since maintained by volunteers. It is the lexer generator adopted by projects such as PHP, SpamAssassin, Ninja build system and others. Together with the Lemon parser generator, re2c is used in BRL-CAD. This combination is also used with STEPcode, an implementation of ISO 10303 standard.