- C 47.7%
- C++ 43.6%
- Roff 5%
- Java 1.6%
- Reason 0.3%
- Other 1.4%
The "Run Main Test Suite" step of the autotools workflow runs `make check`
under `ulimit -s 256`. `make check` also compiles the test programs, so the
compiler runs under the limit as well. With GCC 15 on ubuntu-26.04 (the
image the `ubuntu-latest` jobs now run on) the compiler crashes on
`lib/test.cc` under that limit:
g++: internal compiler error: Segmentation fault signal terminated
program cc1plus
make[3]: *** [Makefile:7076: lib/test.o] Error 4
In an ubuntu:26.04 container the same file compiles with a 512K limit, and
in an ubuntu:24.04 container (GCC 13) it compiles under 256K.
Build the test programs in a separate step (`make check TESTS=`) before
the stack-limited `make check`, so that their compilation does not inherit
the 256K limit.
|
||
|---|---|---|
| .github | ||
| bazel | ||
| benchmarks | ||
| bootstrap | ||
| build | ||
| cmake | ||
| doc | ||
| examples | ||
| fuzz | ||
| include | ||
| lib | ||
| libre2c_old | ||
| src | ||
| test | ||
| unicode | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| .travis.yml | ||
| add-release.txt | ||
| autogen.sh | ||
| BUILD.bazel | ||
| BUILD.md | ||
| CHANGELOG | ||
| CMakeLists.txt | ||
| CMakePresets.json | ||
| configure.ac | ||
| CONTRIBUTING.md | ||
| IDEAS.md | ||
| LICENSE | ||
| MAINTAINERS.md | ||
| Makefile.am | ||
| Makefile.lib.am | ||
| MODULE.bazel | ||
| NO_WARRANTY | ||
| README.md | ||
| release.sh | ||
| run_tests.py.in | ||
| sf-cheatsheet | ||
| WORKSPACE | ||
| WORKSPACE.bzlmod | ||
DESCRIPTION
re2c is a free and open-source lexer generator for C/C++, Go and Rust.
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. It has a lot of examples.
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.
CONTRIBUTING
re2c is an Open Source, community-driven project. See CONTRIBUTING.md for details about contributions to this repository.
BUILD
See BUILD.md or the online docs for instructions how to build re2c.
FEEDBACK
Bugtracker:
Mailing lists:
IRC channels:
- irc.oftc.net/#re2c
- irc.libera.chat/#re2c
You are welcome to ask for help or share your thoughts and ideas.
AUTHORS
re2c was originally written by Peter Bumbulis peter@csg.uwaterloo.ca. Since then many volunteers have contributed to the project. The current maintainer is Ulya Trofimovich skvadrik@gmail.com.