HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ArneCode

no profile record

Submissions

Show HN: Grammar-to-marser - Input a PEG/Pest grammar and get a full rust parser

grammar-to-marser.arnedebo.com
4 points·by ArneCode·vor 11 Tagen·2 comments

Show HN: Marser, a grammar-first parser combinator library for Rust

github.com
2 points·by ArneCode·letzten Monat·1 comments

[untitled]

1 points·by ArneCode·letzten Monat·0 comments

comments

ArneCode
·vor 11 Tagen·discuss
for context, you can find a HN discussion about the library here: https://news.ycombinator.com/item?id=48475144
ArneCode
·vor 11 Tagen·discuss
Hi everyone! I am the author of marser [1], a parser-combinator library for rust. This tool can be used to see what the marser code of a certain grammar could look like, to help users explore how to use marser.

Feel free to ask me any questions or suggest improvements!

[1] https://github.com/ArneCode/marser
ArneCode
·vor 26 Tagen·discuss
I use it because their pro plan is free for students
ArneCode
·vor 26 Tagen·discuss
they propably have a lot of training data from their users, which might be useful for SpaceX which has a lot of compute
ArneCode
·letzten Monat·discuss
Hello everyone!

I am the author of marser, a parser-combinator library in rust.

I have tried outlining the reasons for writing this library in this blog post: https://blog.arnedebo.com/posts/a-grammar-first-approach-to-...

The main aim of the library is to make parsers readable and understandable by enabling users to write code that resembles formal grammars / ebnf (more on that in the blog post). It also has additional features like error recovery, custom error diagnostics and a TUI for debugging the parsers.

This is my first library, so I would really appreciate some feedback on design decisions / usability etc.

Disclaimer: I have used AI for parts of the documentation, for some of the macro code and things like the TUI viewer but the core parsing code has been written by me.
ArneCode
·letzten Monat·discuss
Works for me
ArneCode
·letzten Monat·discuss
Interesting!

Would be nice to have a way to tell the scan that some parts are intentional, like #[allow(...)] in rust
ArneCode
·letzten Monat·discuss
I remember being able to have unlimited Claude opus queries on the free student plan, they must have had to change something to not loose too much koney
ArneCode
·letzten Monat·discuss
Ok, that's cool
ArneCode
·letzten Monat·discuss
Ok, you made me laugh :)

I think that most Amish were never used to technology though?
ArneCode
·letzten Monat·discuss
I think there are costs beyond having to sacrifice writing code yourself. When prototyping yourself you learn a lot about the problem, see what design decisions lead to what tradeofs. While you write code your brain is always running in the background, giving you thoughts about how things could break, where the structure could be simplified, where the code could be extended. I feel this is lost or at least reduced a lot when an LLM writes code because you have a lot less contact with the software.
ArneCode
·letzten Monat·discuss
I think it is unlikely that people will act to completely abolish technology once they are used to it in their everyday lives.