lexy
C++ parsing DSL (by foonathan)
read
A small header-only library to make input in C++ sensible (by ShakaUVM)
lexy | read | |
---|---|---|
19 | 12 | |
953 | 54 | |
- | - | |
7.5 | 0.0 | |
7 days ago | 10 months ago | |
C++ | C++ | |
Boost Software License 1.0 | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
lexy
Posts with mentions or reviews of lexy.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-07.
-
Why are strings and IO so complicated?
lexy (https://lexy.foonathan.net/)
- Show HN: Matcheroni, a tiny C++20 header library for building lexers/parsers
-
Koji projekat na Githubu vas je odusevio u zadnje vreme?
https://github.com/foonathan/lexy nakon sto sam se propatio sa errorima od boost spirita, a pegtl mi se nije svidao, ovaj library je dosao kao odusevljenje, a i dokumentacija je iznenadujuce ok
- The Future of Boost by Vinnie Falco
-
Simple question on compilers and syntax rules
In general, LALR parser generators are more difficult to work with than RD parser combinators. Instead of flex and bison, I'd recommend checking out Boost.Spirit or lexy.
-
A simple library for compile-time string matching.
This might be closer: https://github.com/foonathan/lexy
-
Any good parser combinator libraries for C++?
Lexy: https://lexy.foonathan.net/
- Show HN: Lexy – C++ parser combinator library with custom DSL
-
How often do you use these keywords ?
lexy has something like std::bind with a way to specify fallback values for the placeholders if the arguments aren't provided: lexy::_1.or_default(fallback)
- Lexy: C++ Parsing DSL Library
read
Posts with mentions or reviews of read.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-08.
-
C++ And Beyond: Discussion - Vittorio Romeo, Kevlin Henney, Nico Josuttis & Kate Gregory - ACCU 2023
It was on the mailing list that screens proposals prior to writing papers. Basically it was for making input much easier to work with, like this: https://github.com/ShakaUVM/read
-
The Future of Boost by Vinnie Falco
I have thought about submitting a library of mine (https://github.com/ShakaUVM/read) for standardization or inclusion in Boost. Basically it does for input what format did for output - replace the stream system with something more functional.
- Keep getting a loop when I enter a letter instead of a number.
- What are some cool modern libraries you enjoy using?
-
Read a string from user
Using readlib:
-
Steams operations order?
That's why I wrote my read library (https://github.com/ShakaUVM/read). You can just do:
- Why is my program skipping a cin input?
- Why am I able to capture data from text file with std::ifstream with either std::getline or extraction operator >> but not unable to do so by going back and forth between the two??
- std::cin doesn't work after entering the wrong input
-
What (relatively) easily to implement features would you like to see in c++23.
5) Make input come from functions rather than call by reference, such as what I did here: https://github.com/ShakaUVM/read
What are some alternatives?
When comparing lexy and read you can also consider the following projects:
PEGTL - Parsing Expression Grammar Template Library
frozen - a header-only, constexpr alternative to gperf for C++14 users
parser-demo - Good source layout with Flex and Bison
Boost - Super-project for modularized Boost
gadgetron - Gadgetron - Medical Image Reconstruction Framework
rust - Empowering everyone to build reliable and efficient software.
json_struct - json_struct is a single header only C++ library for parsing JSON directly to C++ structs and vice versa
masala-parser - Javascript Generalized Parser Combinators
stb - stb single-file public domain libraries for C/C++
daw_json_link - Fast, convenient JSON serialization and parsing in C++
Allegro - The official Allegro 5 git repository. Pull requests welcome!