How to fill an "empty" variant case in alternatives

Michael Powell <[email protected]> Wed, 31 Oct 2018 21:56:27 -0400
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <CAMEoF_E-xiCCH_uU0Lds8hC8C4XiDM=XabREpEZdc2bAMkWWzw@mail.gmail.com>
Hello,

I've got a curious use case in which one of the alternatives is said
to be an "empty statement".

I'm taking the grammar a little bit on faith until I see it working
out more, but I wonder how I can synthesize some sort of placeholder
for it in the meantime.

Literally, the specification says something like this:

In pseudo-Spirit notation:

enumBody = "{" >> *( option | enumField | emptyStatement ) >> "}"

Option and EnumField I am okay with. However, emptyStatement is
literally defined like this:

emptyStatement = ";"

Nothing there, but in terms of the std::vector<std:variant<...>>
above, it may be an option, unless I can persuade Spirit to ignore it
(?), or synthesize something in its place.

Suggestions?

Thanks!

Best regards,

Michael Powell