Resrap – A Parser but in Reverse
Show HN: Resrap – A Parser but in Reverse
Based, Resrap – A Parser but in Reverse works in show hn launch.
Profile
I built Resrap, a Go package that takes a grammar in ABNF format and generates infinitely long sequences of syntactically correct code...either completely randomly or with seeds for a deterministic generation.ABNF is a modified version of EBNF(https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_f...) I made for this project, basically means you can specify when generating code 20% of lines will be if{} blocks and 50% will be while{} blocks which allows for more natural code generation, plus support for infinite generation of code.It’s very fast...it generated ~40 million tokens of C syntax in about 26 seconds on my laptop and supports multithreading which actually saw boosts in perfor
The company sits in the show hn launch segment, where it competes on its core product or service.
Its current recorded stage is Show HN launch.
| Sector | Show HN launch |
|---|---|
| Stage | Show HN launch |
Website: resrap.osdc.dev
Browse related
Create a free account