frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

LLM generated parsers and compliance checkers for Sparrow DSL

3•melezhik•7h ago
Hi

I believe LLM are really cool in generating DSL code. If one provides well structured and clear prompt.

I am the author of Sparrow ( https://github.com/melezhik/Sparrow6/blob/master/documentation/taskchecks.md ) DSL for text parsing and automation with SDK for many programming languages , and I am really impressed how well deep seek generates parsers and compliance checkers for different configuration files - sudoers, sshd, redis, forgejo to name a few. Here are just some examples:

- forgejo - https://chat.deepseek.com/share/y3f2om2b6hvzcm752h

- redis - https://chat.deepseek.com/share/9eakpdlaa6b88e38u3

- sshd - https://chat.deepseek.com/share/1roo31ihmuz10xjxem

- sudoers - https://chat.deepseek.com/share/is2ey6vgbhvdbyqtoa

Here are two prompts I use :

- With Python SDK - https://gist.github.com/melezhik/d57132c9d3ba0ae9cee30a7c04c98399 - With Raku SDK - https://gist.github.com/melezhik/6f25775aab9f5ec2e22f1193e7ca824b

You may choose any of them replace words sshd/forgejo by any word of your interest and try it out with free deep seek chat bot, expert level with browser, have fun

PS you’d better try Raku SDK prompt as it handles configuration files with logical groups ( ini style ) as well , but you can easily modify the Python one by stealing the phrasing from Raku prompt

Ask HN: We just had an actual UUID v4 collision...

415•mittermayr•1d ago•318 comments

Rumors of my death are slightly exaggerated

1620•CliffStoll•3d ago•248 comments

How are folks affordably self-training in AI?

6•macartain•7h ago•5 comments

LLM generated parsers and compliance checkers for Sparrow DSL

3•melezhik•7h ago•0 comments

Ask HN: What is the underlying stack behind multi-agent platforms?

3•throwaw12•10h ago•2 comments

Reflections on NetBSD 11

8•morpheos137•1d ago•4 comments

Ask HN: What is your go-to solution for a personal wiki in 2026?

15•ex-aws-dude•2d ago•19 comments

Can NPM, pnpm etc. use frontier models to check packages for malware?

5•VikRubenfeld•1d ago•4 comments

Novel macro signals for AI-related job loss?

5•sfmz•1d ago•1 comments

Ask HN: How do we handle the rise of low quality "This is LLM" comments?

9•shantnutiwari•1d ago•20 comments

Ask HN: What do you still do manually in 2026 that should be automated?

19•lishunsheng•2d ago•31 comments

Ask HN: What will happen as AI costs increase?

14•MetaWhirledPeas•2d ago•21 comments

Ask HN: How are you handling QA being bottlenecked with more AI-generated PRs?

4•softneon•1d ago•4 comments

Ask HN: Are we gonna back less powerful local LLMs

9•omertt27•2d ago•8 comments

Ask HN: Is the Job Market Actually Bad?

134•idontwantthis•1w ago•206 comments

Ask HN: How to start up as an individual developer?

13•alexyan0431•3d ago•12 comments

Ask HN: Who got hired with Who wants to be hired? (On 2026)

18•Gooblebrai•3d ago•11 comments

"Surface" a Governed AI-Agentic Surface

3•paulbernard•1d ago•0 comments

Claude Flags Hantavirus Vaccine Questions as Security Risk

12•pell•1d ago•9 comments

You've reached the end!