re2c

Lexer generator for C, C++, D, Go, Haskell, Java, JS, OCaml, Python, Rust, Swift, V and Zig. (by skvadrik)

Re2c Alternatives

Similar projects and alternatives to re2c

  1. HomeBrew

    1,405 re2c VS HomeBrew

    🍺 The Package Manager for Everywhere

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. Docusaurus

    325 re2c VS Docusaurus

    Easy to maintain open source documentation websites.

  4. CyberChef

    319 re2c VS CyberChef

    The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis

  5. coolify

    198 re2c VS coolify

    An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

  6. husky

    175 re2c VS husky

    Git hooks made easy 🐶 woof!

  7. Zulip

    155 re2c VS Zulip

    Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

  8. date-fns

    137 re2c VS date-fns

    ⏳ Modern JavaScript date utility library ⌛️

  9. postgrest

    121 re2c VS postgrest

    REST API for any Postgres database

  10. dayjs

    111 re2c VS dayjs

    ⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API

  11. tz

    101 re2c VS tz

    Time zone database and code

  12. ninja

    63 re2c VS ninja

    a small build system with a focus on speed

  13. ZLib

    59 re2c VS ZLib

    A massively spiffy yet delicately unobtrusive compression library.

  14. sudo

    54 re2c VS sudo

    Utility to execute a command as another user (by sudo-project)

  15. Luxon

    40 re2c VS Luxon

    ⏱ A library for working with dates and times in JS

  16. ultimatepp

    U++ is a C++ cross-platform rapid application development framework focused on programmer's productivity. It includes a set of libraries (GUI, SQL, Network etc.), and integrated development environment (TheIDE).

  17. StackStorm

    25 re2c VS StackStorm

    StackStorm (aka "IFTTT for Ops") is event-driven automation for auto-remediation, incident responses, troubleshooting, deployments, and more for DevOps and SREs. Includes rules engine, workflow, 160 integration packs with 6000+ actions (see https://exchange.stackstorm.org) and ChatOps. Installer at https://docs.stackstorm.com/install/index.html

  18. Bottle

    24 re2c VS Bottle

    bottle.py is a fast and simple micro-framework for python web-applications.

  19. Byte Buddy

    11 re2c VS Byte Buddy

    Runtime code generation for the Java virtual machine.

  20. greenclip

    10 re2c VS greenclip

    Simple clipboard manager to be integrated with rofi - Static binary available

  21. lowdown

    simple markdown translator

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better re2c alternative or higher similarity.

re2c discussion

Log in or Post with

re2c reviews and mentions

Posts with mentions or reviews of re2c. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-09-09.
  • Making a Shading Language for My Offline Renderer
    1 project | news.ycombinator.com | 11 Jun 2026
    Bison is a syntax analyzer.

    A valid choice; re2c[1] + Lemon[2] might be a friendlier if less well-established implementation of essentially the same underlying principles. Moving further away, there’s also ANTLR[3] and spending a week on a hand-coded lexer and parser.

    > CPU’s parallelism is not utilized in the same way as GPU since different threads are not synchronized at all, there is simply nothing like Warp or Wavefront. [...] SIMD optimization would be a fairly bad fit for shaders since there are no four instances of shader executions at the same time.

    See, however, ISPC[4,5] for how attempting to use SIMD (also known as “90% of your CPU’s compute”) does yield wavefronts, etc.

    [1] https://re2c.org/

    [2] https://sqlite.org/src/doc/trunk/doc/lemon.html

    [3] https://www.antlr.org/

    [4] https://ispc.github.io/

    [5] https://pharr.org/matt/blog/2018/04/18/ispc-origins

  • Which open-source projects are widely used but maintained by just a few people?
    21 projects | news.ycombinator.com | 9 Sep 2024
  • Ask HN: What are some unpopular technologies you wish people knew more about?
    56 projects | news.ycombinator.com | 2 Dec 2023
    (1) Zulip Chat - https://zulip.com/ - seems to be reasonably popular, but more people should know about it

    I’ve been using it for over 5 years now [1], and it’s as good as ever. It’s way faster than any other chat app I’ve used. It has a good UI and conversation model. It has a simple and functional API that lets me curl threads and write blog posts based on them.

    (only problem is that I Ctrl-+ in my browser to make the font bigger – I think it’s too dense for most people)

    (2) re2c regex to state machine compiler - https://re2c.org

    A gem from the 90’s, which people have done a great job maintaining and improving (getting Go and Rust target support in the last few years). I started using it in 2016, and used for a new program a few months ago. I came to the conclusion that it should have been built into C, because C has shitty string processing – and Ken Thompson both invented C AND brought regular languages to computing !!

    In comparison, treesitter lexers are very low level, fiddly, and error prone. I recently saw dozens of ad hoc fixes to the tree-sitter-bash lexer, which is unsurprising if you look at the structure of the code (manually crawling through backslashes and braces in C).

    https://github.com/tree-sitter/tree-sitter-bash/blob/master/...

    These fixes are definitely appreciated, but I think it indicates a problem with the model itself.

    (based on https://lobste.rs/s/endspx/software_you_are_thankful_for#c_y...)

    [1] https://www.oilshell.org/blog/2018/04/26.html

  • Irregular Expressions
    1 project | news.ycombinator.com | 9 Apr 2023
    The "Papers" section on re2c's web site continues Laurikari's work: http://re2c.org/

    ... but I haven't found them particularly accessible. And it's not clear it's a viable strategy in a general purpose regex engine. Namely, I'm not sure how much bigger it makes the DFA.

    Also, AFAIK, these are DFAs. They are different theoretical structures with explicitly more power.

    > and then an NDFA is used to match a third time, to extract the capture groups.

    That's the PikeVM. It's an NFA simulation. Although it uses additional storage and is otherwise more computationally powerful than just a plain NFA.

  • My experience crafting an interpreter with Rust (2021)
    3 projects | news.ycombinator.com | 25 Mar 2023
    > What do you gain by using it?

    Performance, although this possibly depends on your compiler, whether you use PGO, and similar finicky issues.

    Example: https://eli.thegreenplace.net/2012/07/12/computed-goto-for-e...

    Some prior HN discussion: https://news.ycombinator.com/item?id=18678920

    Another example where goto is relevant is implementing finite automata. A (very short) paper from 1988 that discusses three different ways of implementing a finite state machine is "How (Not) to Code a Finite State Machine". The documentation of RE2C may be even more interesting: https://re2c.org

    RE2C is a program that compiles finite automata into C, Go, or Rust code. It provides many implementation strategies: it can make use of computed or labelled gotos when the language provides them.

    Implementing pushdown automata comes with similar issues.

  • How to compile DPDK-22.11.1
    3 projects | dev.to | 6 Dec 2022
    wget https://github.com/skvadrik/re2c/releases/download/1.0.3/re2c-1.0.3.tar.gz tar -zxvf re2c-1.0.3.tar.gz cd re2c-1.0.3/ ./configure make make install
  • Best approach for writing a lexer
    1 project | /r/Compilers | 28 Nov 2022
    In Rust I use https://docs.rs/logos/latest/logos/. I think another similar is http://re2c.org
  • re2c is a free and open-source lexer generator for C/C++, Go and Rust
    1 project | news.ycombinator.com | 21 Sep 2022
  • File parsing with PHP, Bison and re2c
    2 projects | dev.to | 25 Aug 2022
    re2c is an open-source lexer generator. It uses regular expressions to recognize tokens.
  • Best option for Rust Parser and Lexer Generators?
    3 projects | /r/rust | 25 Feb 2022
    Those suggested crates are still more or less the popular options. There was also recently added support for Rust in re2c.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 8 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic re2c repo stats
14
1,314
7.8
about 2 months ago

skvadrik/re2c is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

The primary programming language of re2c is C.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com