Closed ghost closed 7 years ago
~@tjvr this sounds like a moo question.~
EDIT: Err, it is. I thought this was the nearley repo — I guess I get email notifications for this one, too now?
See #24; you can do this yourself.
@tjvr I don't like that solution. A skip property would be very useful.
As I explained above, we've decided that such a feature would be out of scope for moo. If you have any particular arguments against this, perhaps #24 would be the place to add them.
@tjvr no problem, I forked moo and implemented it. Calling this feature out of scope is ridiculous, of course.
During iteration, it would be great to be able to skip certain tokens, such as white space and comments.
In ANTLR, this is done using "hidden" channels. Maybe something like a "skip" attribute?