http://www.perlmonks.org?node_id=674445


in reply to Reversible parsing (with Parse::RecDescent?)

this is not a 'humpty dumpty' operation it is possible .... but I agree with other responses in that it will be difficult to have perfect 'round tripping'.

btw (note: this is unrelated to your problem, just noticed you might be working with XML) have you considered using XML::Descent

  • Comment on Re: Reversible parsing (with Parse::RecDescent?)

Replies are listed 'Best First'.
Re^2: Reversible parsing (with Parse::RecDescent?)
by goibhniu (Hermit) on Mar 17, 2008 at 01:42 UTC

    Thanks for your feedback and suggestions. I checked out XML::Descent; it looks like a descent enough module (pun intended), but deals on the right side of my ascii-art design diagram, which was solved well enough with Data::Serializer and XML::Dumper for now. As I go from proof-of-concept to reality, I'll definitely consider it, thanks.


    #my sig used to say 'I humbly seek wisdom. '. Now it says:
    use strict;
    use warnings;
    I humbly seek wisdom.
Re^2: Reversible parsing (with Parse::RecDescent?)
by Jenda (Abbot) on Mar 17, 2008 at 13:26 UTC
      I built a first iteration of an XSLT lint checker using this module ... in the end I decided to use some other technology but I found the module well built and the concept better then rolling your own in RecDescent when it comes to working with XML. hth, Jim Fuller