sd-dynamic-prompts
sd-dynamic-prompts copied to clipboard
Grammar check
I have a number of hand-rolled wildcard files, where file A sometimes includes one of files A1-A5, and so on. Somewhere in a few dozen files there's an error, and the error message is just that there's a problem, somewhere. I dunno where. And the files have a variety of syntax in them, so visual scanning is time consuming and didn't show me the issue. Would it be feasible to include something like a grammar check on wildcard files? If you have a BNF I could maybe put together a solution and PR?
I'm sorry, I'm not quite following... What is the actual error message you're getting?
There's no up-to-date BNF (don't necessarily trust the comment at the top of the file), but the parser is https://github.com/adieyal/dynamicprompts/blob/main/src/dynamicprompts/parser/parse.py