Hi everybody,
I'm really no Ant expert, but I'm working on a project
that might be of interest to this thread. 
It defines an expression language that extends 
Ant's property expansion. At the moment the language 
is limited and is still subject to heavy changes 
(I like to experiment and I'm still learning Java ;-).

Anyway, an expression looks like this

  ${antx.prj getProperty(ant.version)}

which is the equivalent to Java's

  getProject().getProperty("ant.version");

It has some similarities with Lisp but it is also
a macro language:
the folowing function definition

  f=${func${#1}(${_str_}${_str_})}

if called with 

  ${f(Name,str=A)} 

evaluates to the call

  ${funcName(AA)}

So, it is just functions, no class definitions,
inheritance, etc., but it is highly customizable 
and I hope will evolve.

If you're curious have a look at 
http://www.efanomars.net/pf

Stefano Marsili


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to