tzlaine / parser

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

Add delimiter[] directive that applies only to the new permutation parser #162

Open tzlaine opened 3 months ago

tzlaine commented 3 months ago

This is to make it easy to write a || b || c, and have delimiters in between all of them, but not before the first or after the last. Without this directive, you'd have to establish some kind of counter that all the subparsers above would be able to see and increment, and have all of them skip, then parse a delimiter, if they were not the first one used.