tzlaine / parser

A C++ parser combinator library.
Boost Software License 1.0
70 stars 12 forks source link

How to define a rule parser with an empty attribute? #75

Closed akrzemi1 closed 5 months ago

akrzemi1 commented 5 months ago

The docs do not state it clearly, how I can define a rule parser with an empty attribute (e.g., when I need a parser for skipping comments). Neither in the tutorial, nor in the reference section?

I am guessing that I need to skip the second template parameter. Is that right?

tzlaine commented 5 months ago

Yes, that's right. I'll add this to the docs in a way that's more clear. I swear it used to say that....