Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: How would you parse this?

by LanX (Saint)
on Oct 25, 2013 at 22:18 UTC ( [id://1059768]=note: print w/replies, xml ) Need Help??


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

It doesn't seem to be a data structure it's code, with [ key : value , ] hashes and { code  } blocks.

At least I guess so, the example given has at least one syntax error, a comma is missing (between Real: and  String:)

With the sparse information provided it doesn't make sense to speculate.¹

IMHO one more case of How (Not) To Ask A Question

Cheers Rolf

( addicted to the Perl Programming Language)

¹) oops, sorry just realizing that speculations are verboten... ;-)

Replies are listed 'Best First'.
Re^5: How would you parse this?
by BrowserUk (Patriarch) on Oct 25, 2013 at 22:26 UTC
    the example given has at least one syntax error, a comma is missing

    Thanks++ Corrected.

    With the sparse information provided ...

    So then the question is: what more information is required?

    What I've posted is pretty much all I have. I'll have to invent whatever further information is required, but I'll need to know what that required information is before I can do so.

    it doesn't make sense to speculate.

    Thanks for now endorsing my attempt to discourage speculation.


    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.
      > So then the question is: what more information is required?

      A goal or at least a motivation.

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

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

      init and this are keywords of an OO language, but with which concrete semantic?

      This seems like an attempt to derive the language of the Bible from two phrases in a antique graffiti in a temple. If this is all you got, better parse it manually with your bio-computer.

      I'm sure someone is playing a joke on you/us ¹, like when you confronted us with this fake math-paper.

      Cheers Rolf

      ( addicted to the Perl Programming Language)

      ¹) maybe a splitted personality?

        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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1059768]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-19 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found