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 few example :
-
forgejo - https://chat.deepseek.com/share/y3f2om2b6hvzcm752h
-
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

