Expronicon.jl icon indicating copy to clipboard operation
Expronicon.jl copied to clipboard

[Feature request] generating BNF from ADTs

Open ChenZhao44 opened this issue 1 year ago • 1 comments

It will be very useful if we can generate BNF from user-defined ADTs automatically.

ChenZhao44 avatar Mar 06 '23 19:03 ChenZhao44

this should be possible by just walking through the definitions via reflections (the variant_xxx functions), the question is it does not fully compatible with BNF - ADTs do not have syntax information, generating a specific BNF would be possible.

Roger-luo avatar Mar 06 '23 21:03 Roger-luo