Closed mustajarvi closed 10 years ago
As an optimization parboiled encodes "rule mismatch" as null
.
So, in your example, if Digits
returns null it means "rule didn't match". This is expected behavior and a consequence of how parboiled currently works.
"Outputting the rule itself" indeed makes no sense.
I tried just outputting the rule itself to check it's type, but that resulted in a NPE. Example:
Might be a nonsensical use but a NPE is still a bit surprising.