[jamming] syntax rule rulename : vars - is it working ?

Mildred ml.mildred593 at online.fr
Fri Dec 29 12:03:24 PST 2006


Somewhere, the manual (Jam.html) says

> rule rulename [ : vars ] { statements }
> 
>     Define a rule's procedure, replacing any previous definition. If
>     vars are provided, they are assigned the values of the parameters
>     ($(1) to $(9)) when statements are executed, as with the local
>     statement.

Just a question. Is it supposed to work ?
I tried but it does not.

My code :

    rule VarFile : basename { # line 103
        Echo $(basename) ;
    }

The errors :

    Jamrules: line 103: syntax error at keyword :
    Jamrules: line 103: syntax error at keyword {
    Jamrules: line 105: syntax error at keyword }

Also, i found something else. The bind attribute to the action
definition. bind is not before the action name as said in my
documentation, but after.

Anyway, I made a syntax highlighter for Kate. It is downloadable here :
http://kde-files.org/content/show.php?content=50830

Mildred
-- 
Mildred       <xmpp:mildred at jabber.fr> <http://mildred632.free.fr/>
Clef GPG :    <hkp://pgp.mit.edu> ou <http://mildred632.free.fr/gpg_key>
Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B]


More information about the jamming mailing list