kschiess / parslet

A small PEG based parser library. See the Hacking page in the Wiki as well.
kschiess.github.com/parslet
MIT License
809 stars 95 forks source link

Ignoring a subtree #61

Closed shurizzle closed 12 years ago

shurizzle commented 12 years ago

I need to ignore a whole subtree, so i wrote a patch to ignore it using Parslet::Atoms::Base#as(nil), i think this can be a good feature :)

kschiess commented 12 years ago

This is backwards - .as(nil) in production code? Really? If this is serious, it should be called atom.ignore or such.

And please write to the mailing list with an example of why you cannot use parslet without that feature. Let's discuss first.

I might seem stubborn here, but I am trying hard to keep things orthogonal and small. Parslet is not about fighting complexity with more complexity.