Hi all,
I am trying to parse recursive blocks, i.e., blocks that can contain other sub-blocks, by
using PetitParser.
This is how I would do it:
blockParser := ${ asParser, ( blockParser / ( ($} asParser) not, #any asParser)) star, $}
asParser
It works, but I am not sure it is the most convenient way.
Could I have your opinion?
Thank you,
Alberto