Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Typo in Exegesis 5?

by erikharrison (Deacon)
on Aug 24, 2002 at 22:20 UTC ( #192598=note: print w/ replies, xml ) Need Help??


in reply to Re: Typo in Exegesis 5?
in thread Typo in Exegesis 5?

$text =~ /<Diff.file>/; # Invoke through grammar
In Apocalypse 5, Larry uses ::, not . to separate grammar and rule names.

This is a method call.

Update: As Juerd rightly points out, there is a distinction between a grammer and a class, and their rules and methods. However, the same syntax is used to call a rule from a grammer, as a grammer can inherit from other grammer(s), delegate to other grammers, and possibly even autogenerate rules. In these cases, the rule needs to be treated as a method call.

Cheers,
Erik

Light a man a fire, he's warm for a day. Catch a man on fire, and he's warm for the rest of his life. - Terry Pratchet


Comment on Re: Re: Typo in Exegesis 5?
Download Code
Replies are listed 'Best First'.
Re: Re: Re: Typo in Exegesis 5?
by Juerd (Abbot) on Aug 24, 2002 at 23:59 UTC

    This is a method call.

    file is a rule, not a method. (Diff is a grammar, not a class. -- There is a parallel, but Damian and Larry interpret it differently)

    - Yes, I reinvent wheels.
    - Spam: Visit eurotraQ.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2015-07-29 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls