apli
clex
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
apli
-
Abstract Programming Language Interface
Check it out.
clex
- clex is now thread-safe and instance-based, a lexer generator for C
-
Show HN: Clex is now thread-safe and instance-based A lexer generator for C
https://github.com/jafarlihi/clex
I very recently updated clex to be instance-based (instead of being a single global instance) and thread-safe based on previous feedback.
clex lets you programatically generate lexers in your C program without going through extra intermediary generation/compilation step, and now you can have more than one in your application!
There’s also cparse: https://github.com/jafarlihi/cparse
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.
Feedback and contributions are appreciated!
-
GitHub - jafarlihi/cparse: cparse is a simple LR(1) parser generator for C
As with clex, I strongly encourage you to do all your testing using -fsanitize=address,undefined since you'll catch these issues sooner. Also, as I had demonstrated on clex, a dozen-line arena allocator can solve all your memory leaks quite easily.
- GitHub - jafarlihi/clex: clex is a simple lexer generator for C
- Show HN: Clex – simple lexer generator for C
What are some alternatives?
libfsm - DFA regular expression library & friends
lexer - A lexical analyzer based on DFA that is built using JS and supports multi-language extensions / 一个基于DFA的支持多语言扩展的JS版开源词法分析器
Melang - A script language of time-sharing scheduling coroutine in single thread
tklgen
bison - GNU Bison
JFlex - The fast scanner generator for Java™ with full Unicode support
decomment-program-c - C program to remove comments from source-code
RE-flex - A high-performance C++ regex library and lexical analyzer generator with Unicode support. Extends Flex++ with Unicode support, indent/dedent anchors, lazy quantifiers, functions for lex and syntax error reporting and more. Seamlessly integrates with Bison and other parsers.
owl - A parser generator for visibly pushdown languages.
sreutils - The UNIX holy trinity, reimagined