HackerTrans
热门最新趋势评论往期问答秀出招聘

ArneCode

no profile record

提交

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

grammar-to-marser.arnedebo.com
4 分·作者 ArneCode·11天前·2 评论

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

github.com
2 分·作者 ArneCode·上个月·1 评论

[untitled]

1 分·作者 ArneCode·上个月·0 评论

评论

ArneCode
·11天前·讨论
for context, you can find a HN discussion about the library here: https://news.ycombinator.com/item?id=48475144
ArneCode
·11天前·讨论
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天前·讨论
I use it because their pro plan is free for students
ArneCode
·26天前·讨论
they propably have a lot of training data from their users, which might be useful for SpaceX which has a lot of compute
ArneCode
·上个月·讨论
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
·上个月·讨论
Works for me
ArneCode
·上个月·讨论
Interesting!

Would be nice to have a way to tell the scan that some parts are intentional, like #[allow(...)] in rust
ArneCode
·上个月·讨论
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
·上个月·讨论
Ok, that's cool
ArneCode
·上个月·讨论
Ok, you made me laugh :)

I think that most Amish were never used to technology though?
ArneCode
·上个月·讨论
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
·上个月·讨论
I think it is unlikely that people will act to completely abolish technology once they are used to it in their everyday lives.