lexertl14
bpr_cpp_lexer_mirror
lexertl14 | bpr_cpp_lexer_mirror | |
---|---|---|
3 | 1 | |
48 | 5 | |
- | - | |
6.2 | 0.0 | |
2 months ago | almost 5 years ago | |
C++ | C++ | |
- | - |
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.
lexertl14
-
Show HN: Yacc/Lex editor/tester online
I'm building an online yacc/lex (LALR(1)) grammar editor/tester to help develop/debug/document grammars, the main repository is here https://github.com/mingodad/parsertl-playground and the online playground with several non trivial examples is here https://mingodad.github.io/parsertl-playground/playground/ .
Select a grammar/example from "Examples" select box and then click "Parse" to see a parser tree for the source in "Input source" editor.
It's based on https://github.com/BenHanson/gram_grep and https://github.com/BenHanson/lexertl14 .
Any feedback is welcome !
The grammars available so far (with varying state of correctness):
- Ada parser
- Question about lexer and parser generators in Rust
- Why no more Lex/Yakk/ANTLR/whatever?
bpr_cpp_lexer_mirror
-
Why no more Lex/Yakk/ANTLR/whatever?
If you like TMP check out my bachelors thesis you might like my lexer. Granted it's 2 years old but works and I think the API is quite nice (compilation times are stupid long though).
What are some alternatives?
parsertl14 - C++14 version of parsertl
gramatika - A minimal toolkit for writing parsers with Rust
PEGTL - Parsing Expression Grammar Template Library
lalrpop - LR(1) parser generator for Rust
chumsky - Write expressive, high-performance parsers with ease.
regex - An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.
parsertl-playground - A web based playground for parsertl/lexertl
lexy - C++ parsing DSL