| ▲ | LLM generated parsers and compliance checkers for Sparrow DSL | |
| 3 points by melezhik 8 hours 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 | ||