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·11 วันที่ผ่านมา·2 comments

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

github.com
2 points·by ArneCode·เดือนที่แล้ว·1 comments

[untitled]

1 points·by ArneCode·เดือนที่แล้ว·0 comments

comments

ArneCode
·11 วันที่ผ่านมา·discuss
for context, you can find a HN discussion about the library here: https://news.ycombinator.com/item?id=48475144
ArneCode
·11 วันที่ผ่านมา·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
·26 วันที่ผ่านมา·discuss
I use it because their pro plan is free for students
ArneCode
·26 วันที่ผ่านมา·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
·เดือนที่แล้ว·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
·เดือนที่แล้ว·discuss
Works for me
ArneCode
·เดือนที่แล้ว·discuss
Interesting!

Would be nice to have a way to tell the scan that some parts are intentional, like #[allow(...)] in rust
ArneCode
·เดือนที่แล้ว·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
·เดือนที่แล้ว·discuss
Ok, that's cool
ArneCode
·เดือนที่แล้ว·discuss
Ok, you made me laugh :)

I think that most Amish were never used to technology though?
ArneCode
·เดือนที่แล้ว·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
·เดือนที่แล้ว·discuss
I think it is unlikely that people will act to completely abolish technology once they are used to it in their everyday lives.