in reply to Re^6: How would you parse this?
in thread How would you parse this?

A goal ...

My goal is to parse this language.

This snippet looks like a meta-definition for a data type "Scalar" and how native types are casted.

Exactly correct.

It's just a shame that wasn't your first response; because it is insightful and right on the money.

I have no idea what you intend to do with this information in Perl.

(Not that it should matter but...) nothing.

I want to use Perl -- my favorite text mangling tool -- to parse the source and produce something that can be fed to a program written in an entirely different language that will then execute that something.

I'm sure someone is playing a joke on you

Nope. No joke. Just revisiting a long-standing problem that is now reaching the point where I cannot put it off much longer.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.