TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Clex is now thread-safe and instance-based, a lexer generator for C

4 点作者 jafarlihi大约 2 年前
https:&#x2F;&#x2F;github.com&#x2F;jafarlihi&#x2F;clex<p>I very recently updated clex to be instance-based (instead of being a single global instance) and thread-safe based on previous feedback.<p>clex lets you programatically generate lexers in your C program without going through extra intermediary generation&#x2F;compilation step, and now you can have more than one in your application!<p>There’s also cparse: https:&#x2F;&#x2F;github.com&#x2F;jafarlihi&#x2F;cparse<p>It lets you generate LR(1) and LALR(1) parsers in much the same way, and it uses clex under the hood. It’s currently not updated to the latest version of instance-based clex but it is in my plans to do so soon.<p>Feedback and contributions are appreciated!

1 comment

tomcam大约 2 年前
Exciting. Looking through the source now. Plus you have an example right on the repo’s home page! Congratulations.