Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Reversible parsing (with Parse::RecDescent?)

by cutlass2006 (Pilgrim)
on Mar 16, 2008 at 08:21 UTC ( #674445=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://674445]
help
Chatterbox?
[moritz]: oh, the question was about creation, not indexing
[thepkd]: temporary variables
[moritz]: [ { a => [ { b => 1 } ] } ]
[choroba]: dereference ne creation
[choroba]: at least in my lingo
[moritz]: .oO( oh temps, oh moritz )
[GotToBTru]: you are correct, choroba, but of course there is no point in doing one without the other
[GotToBTru]: un less you're working on write-only memory
[1nickt]: my $x = $aohoaoh->[0]->{' foo'}->[0]->{'bar' }; should work
[thepkd]: not indexing

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2016-12-06 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (104 votes). Check out past polls.