Closed wslee closed 5 years ago
Thanks for your nice words and questions.
You can annotate the (recursive) argument with @recurse[int]
to limit the number of unrolling.
For instance,
string s := const
| Concat(const, @recurse[3] s);
@vuminhle Thank you so much! It works well :)
Hello and thank you very much for the great framework!
I have defined a recursive DSL grammar, and want to make the search space finite by limiting depth and "unrolling" the grammar finite times. Perhaps could I do that by annotating production rules of the grammar? Then, what kinds of keywords can I use when using the DSL compiler?