Can scala's parser combinators parse xml and validate that the closing tags have the same name as the opening tags? I don't directly need it, but I would like to know the limits of my libraries.
Yes, it can do that. Use into or >> (which is the same thing, really) to parameterize a latter parser based on a parsed value.
This document seem to describe an attempt on that: http://www.berniepope.id.au/docs/scala_parser_combinators.pdf
... and a link to the software (Scala XML-parser): http://www.berniepope.id.au/software.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With