Good Evening

I am attempting to write a program which perform more complex diff's of a certain file type. The file holds a syntax which i would like to parse similar to XML::Parse's tree view.

This is the code im looking to parse. It is just a snippit but it should be enough
(object Attribute tool "VC++" name "default__Module-Spec" value (list Attribute_Set (object Attribute tool "VC++" name "InternalMap" value (value Text |*:AUTO:AUTO | )) (object Attribute tool "VC++" name "ExportMap" value (value Text |*:AUTO:AUTO | )) (object Attribute tool "VC++" name "InitialSourceIncludes" value (value Text |"stdafx.h" )) (object Attribute tool "VC++" name "InitialHeaderIncludes" value (value Text "")) (object Attribute tool "VC++" name "Copyright" value (value Text "Copyright (C) 1991 - 1999 Rati +onal Software Corporation")) (object Attribute tool "VC++" name "KindSet" value (list Attribute_Set (object Attribute tool "VC++" name "(none)" value 300) (object Attribute tool "VC++" name "DLL" value 301) (object Attribute tool "VC++" name "EXE" value 302) (object Attribute tool "VC++" name "MIDL" value 303))) (object Attribute tool "VC++" name "Kind" value ("KindSet" 300)) (object Attribute tool "VC++" name "BodyExtensions" value (value Text |.cpp |.cxx |.inl )) (object Attribute tool "VC++" name "HeaderExtensions" value (value Text |.h |.hpp |.hxx |inl )) (object Attribute tool "VC++" name "ProjectFolders" value (value Text |Source Files |Header Files )) (object Attribute tool "VC++" name "UsePathMap" value FALSE)))

Any help is appreciated. Esp if someone could identify what this pattern is called, or a module that will help me parse it. It looks lisp ish and even python esq but im not a pro in either of those languages so i may be totaly off.

Thank You

In reply to Parsing Data file by zer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.