inih
tree-sitter-tlaplus
| inih | tree-sitter-tlaplus | |
|---|---|---|
| 3 | 3 | |
| 2,994 | 75 | |
| 1.0% | - | |
| 6.1 | 3.3 | |
| 4 months ago | 4 months ago | |
| C++ | C | |
| GNU General Public License v3.0 or later | 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.
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.
tree-sitter-tlaplus
-
The Emacsification of Software
I've done some similar stuff.
I wanted to reference some TLA+ community stuff. I was initially just copy-pasting the specs into mine, and that worked well enough, but it was a little tedious and I was kind of afraid I might accidentally forget to give attribution to someone if I used their spec.
So I got Claude to build a TLA+ package manager for me. It's just a basic thing in Rust that allows me to plop a deps.json file into my TLA+ folder, and put a git repo url and commit hash, and then I use tree-sitter-tlaplus [1] to rename the modules to have a basic namespace to avoid collisions. It took about 30 minutes of fighting with Claude, but then it worked fine.
As AI gets better and better and cheaper and cheaper, I suspect it will be easy to have tons of custom apps for everything. It's a brave new world.
[1] https://github.com/tlaplus-community/tree-sitter-tlaplus
-
Writing a TLA⁺ tree-sitter grammar: my foray into free software
Not an emacs person myself (yet!) - Carl Thuringer created tla-mode that apparently uses the grammar: https://github.com/carlthuringer/tla-mode
Haven't tested it out myself. Happy to take any PRs if emacs needs its own set of query files; they would live in https://github.com/tlaplus-community/tree-sitter-tlaplus/tre... and they can be added to CI runs to ensure they stay in sync with changes to the parser.
- Happy 15th birthday Hacker News
What are some alternatives?
calculator-c-parser - A simple implementation of a parser and its use to calculate simple mathematical expressions
tree-sitter-go-template - Golang template grammar for tree-sitter
libconfini - Yet another INI parser
tree-sitter-embedded-template - Tree-sitter grammar for embedded template languages like ERB, EJS
libhydrogen - A lightweight, secure, easy-to-use crypto library suitable for constrained environments.
grove - Universal AST parser built on Tree-sitter [GET https://api.github.com/repos/mintlify/grove: 404 - Not Found // See: https://docs.github.com/rest]