PeppaPEG
inih
PeppaPEG | inih | |
---|---|---|
4 | 3 | |
53 | 2,316 | |
- | - | |
0.0 | 5.2 | |
over 2 years ago | 13 days ago | |
C | C | |
MIT License | GNU General Public License v3.0 or later |
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.
PeppaPEG
- Show HN: Peppa PEG – Peg Parser in ANSI C (v1.15.0)
- Peppa PEG v1.10.0 released (Ultra-lightweight PEG Parser in ANSI C)
-
Peppa Peg – An Ultra Lightweight Peg Parser in ANSI C
- Having a PEG parser in ANSI C can benefit whoever is developing a parser, as adding C bindings for other programming languages are not too difficult.
And after SIX months' development, my project is now kinda feature complete. It's named Peppa PEG and you can find it here: .
I have learned quite a lot during the journey of creating it, such as gdb, valgrind, cmake, etc. And I wouldn't make it to the end without learning from some awesome projects, such as pest.rs, cJSON, etc.
To give you a glance how the library is used, here are some examples:
- Write an INI Parser using Peppa PEG: [ini.h](https://github.com/soasme/PeppaPEG/blob/main/examples/ini.h).
- Show HN: Peppa Peg – Ultra Lightweight Peg Parser in ANSI C
inih
-
Simply Parse in C
This looks interesting. I created and maintain a library for INI parsing that got surprisingly popular -- it's tiny, so is good for embedded systems. This API has a very similar feel to mine, including the callback for every key/value pair with a void* userdata. https://github.com/benhoyt/inih
-
Include library with meson
I don't know if it's the best place to post that but on the meson subreddit there is not much people. I want to include the library INIH (which use meson too) to my project but I don't know how.
-
How to set the max characters in fscanf to be a variable or macro?
One simple format is INI, which has the benefit of being simple and ubiquitous. It has rules for quoting and whitespace. It's human readable and human editable. ini.h is a very simple INI parser library, but there are loads of them.
What are some alternatives?
cmark - 💧 Elixir NIF for cmark (C), a parser library following the CommonMark spec, a compatible implementation of Markdown.
libconfini - Yet another INI parser
packcc - A parser generator for C
calculator-c-parser - A simple implementation of a parser and its use to calculate simple mathematical expressions
tree-sitter-tlaplus - A tree-sitter grammar for TLA⁺ and PlusCal
libvncserver - LibVNCServer/LibVNCClient are cross-platform C libraries that allow you to easily implement VNC server or client functionality in your program.
totalcross - TotalCross is a Software Development Kit that helps cross platform application development. Currently supported platforms are: Windows, Wince, Android, iOS, Linux and Linux ARM for embedded systems.
libhydrogen - A lightweight, secure, easy-to-use crypto library suitable for constrained environments.