sd-dynamic-prompts icon indicating copy to clipboard operation
sd-dynamic-prompts copied to clipboard

Grammar check

Open pmcculler opened this issue 1 year ago • 1 comments

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?

pmcculler avatar Nov 27 '23 21:11 pmcculler

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

akx avatar Mar 27 '24 18:03 akx