lexer
clex
lexer | clex | |
---|---|---|
11 | 9 | |
323 | 87 | |
- | - | |
2.3 | 3.0 | |
about 1 year ago | about 1 year ago | |
JavaScript | C | |
MIT License | MIT License |
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.
lexer
- GitHub : A lexical analyzer based on DFA that is built using JS and supports multi-language extensions
- GitHub - WGrape/lexer: A lexical analyzer based on DFA that is built using JS and supports multi-language extensions
- GitHub - A lexical analyzer based on DFA that is built using JS and supports multi-language extensions
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?
php-parser - :herb: NodeJS PHP Parser - extract AST or tokens
apli - The Abstract Programming Language Interface (APLI) is a framework for generating Abstract Syntax Trees (ASTs) to enable developers to create domain-specific languages faster.
JFlex - The fast scanner generator for Java™ with full Unicode support
tklgen
moo - Optimised tokenizer/lexer generator! 🐄 Uses /y for performance. Moo.
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.
libfsm - DFA regular expression library & friends
sreutils - The UNIX holy trinity, reimagined