Could anyone offer any advice on how I might be able to build a parser? I'm working with Dazel Output server and I need to parse the printer attribute lists for template (example below).
My problem is this, I'm upgrading from 3.1 to 3.2 and I need to find out where the templates differ between the versions, so I have to parse the same template for both version and compare them. Any advice would be greatly appreciated!
This is what the attributes in a template would look like...
-input-trays-supported : top,
middle,
bottom,
large-capacity,
tray1,
tray2,
tray3,
tray4
-descriptor : hp5si PS TCP Template
-printer-name : hp5si_ps_tcp_template
-printer-model : pjl
-printer-realization : 1
-medium-default : north-american-letter-white
-output-bin-names-supported : top,
face-down,
face-up
-start-sheet-default : none
-separator-sheet-default : none
-character-sets-supported : iso-latin-1,
ascii
-character-set-default : iso-latin-1
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.