> What I see as needed is a designated meta-token that will be
reserved, in some form or another, as the switch-parser command.
.
.
.
> What about a hash-bang?  Maybe putting a hash-bang in the middle
of the text (outside of quoted literals, of course) could indicate
that the referenced program is to take over the parsing duties.

Or that we should dynaload (a la XS) a previously registered parser with
that name.

        $foo=bar();
        #!syntax VisualBasic
        baz=foo & frob()
        #!syntax Perl6
        print $baz;

That just feels right for some reason.  Spooky... (cue X-Files theme)

So, what else would we do with our new inline #! notation?  Hmm...

        $foo=$bar;

        #!comment
        yadda yadda yadda
        blah blah blah
        foo bar baz
        #!endcomment

        $bar.=$baz;

Maybe?  Possibly?  No?  Darn...

--Brent Dax
[EMAIL PROTECTED]

Reply via email to