in reply to Re: Implementing named infix operators with parser hook?
in thread Implementing named infix operators with parser hook?

Thanks :`(

UPDATE

I don't understand this wording though:

This is primarily to allow the building of interpreters for other languages in the Perl core,

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

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

Replies are listed 'Best First'.
Re^3: Implementing named infix operators with parser hook? (updated)
by tobyink (Canon) on Aug 17, 2018 at 12:42 UTC

    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.

      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