Please fill in the missing blank for me please.

inputoutput
&&
&lab;&lab;
&lab;<
???&lab;

(aXML is format agnostic, so I really mean the output of aXML, and not how it would look if interpreted as HTML by a browser.)

It sounds like you changed aXML from

inputoutput
&amp;&amp;
<post_include>path/to/lt</post_include><
&lab;&lab;

to

inputoutput
&amp;&amp;
&lab;<
<post_include>path/to/lab</post_include>&lab;

which means

sub plugin_name { my $text_to_return = ...; $text_to_return =~ s{<}{<post_include>path/to/lt</post_include>}g; return $text_to_return; }

is now

my %subst = ( '<' => '&lab;', '&lab;' => '<post_include>path/to/lab</post_include>', ); my ($subst_re) = map qr/$_/, join '|', map quotemeta, keys %subst; sub plugin_name { my $text_to_return = ...; $text_to_return =~ s/($subst_re)/$subst{$1}/g; return $text_to_return; }

You made things worse!

No matter whether it's based on regex, yacc or something, building the parser is the easy part — there are books that teach how to do that — it's building the language that's hard.


In reply to Re^33: aXML vs TT2 by ikegami
in thread aXML vs TT2 by Logicus

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.