in reply to Re^2: Implementing named infix operators with parser hook? (updated)
in thread Implementing named infix operators with parser hook?

I don't know why it says that; I can't see how it's that useful for interpreting other languages. A couple of paragraphs further down it says:

It's important to know what custom operators won't do for you. They won't let you add new syntax to Perl, directly. They won't even let you add new keywords, directly. In fact, they won't change the way Perl compiles a program at all.

If you're building your own interpreter for another language into Perl, you'd first need to sort out the parsing. The custom op still would only be an optimization stage afterwards to enable the language's keywords to perform comparably to Perl's built-ins.

  • Comment on Re^3: Implementing named infix operators with parser hook? (updated)

Replies are listed 'Best First'.
Re^4: Implementing named infix operators with parser hook? (updated)
by LanX (Saint) on Aug 17, 2018 at 12:51 UTC
    Thanks, I will try to ask Reini next time I meet him, he might know what was meant.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice