Re: BeanShell Dialects: proposal for future syntax extension mechanism...

Patrick Niemeyer <[email protected]> Thu, 3 Feb 2005 14:04:39 -0600
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <[email protected]>
On Feb 3, 2005, at 11:25 AM, Yemi D. Bedu wrote:

> J = scheme((+ 10 5));
> T = ruby(puts j);
> K = scheme((plugin-use ruby (puts j * 2)));

That is part of the proposal... it should be possible to nest the 
syntax without any special demarcation:

K=scheme( (ruby(puts j * 2)) );

The pre-parser should be responsible for descending the call and 
pulling out these special method invocations.  Then they will have to 
be encoded for the plugins in an appropriate way so that they will not 
have to do any work to parse them further.


Pat



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl