moopT wrote:
> I am building my own scripting language(or dynamic language, whatever)
> in Java. I wish can user other Java library inside the language,
> calling methods of Java objects.
[...]
> Any one can give me suggestion or recommend
> some existed projects for reference? Thanks!
There are lots of pre-existing projects that you can look at, implemented in
various ways, and with different degrees of sophistication. Some names for
Google:
Groovy
Nice
Jython
Hecl
There are lots more, but I can't think of them offhand.
-- chris
David N. Welton - 22 Feb 2006 20:46 GMT
> moopT wrote:
>
>>I am building my own scripting language(or dynamic language, whatever)
>>in Java. I wish can user other Java library inside the language,
>>calling methods of Java objects.
>>Any one can give me suggestion or recommend
>>some existed projects for reference? Thanks!
> There are lots of pre-existing projects that you can look at, implemented in
> various ways, and with different degrees of sophistication. Some names for
[quoted text clipped - 4 lines]
> Hecl
> There are lots more, but I can't think of them offhand.
We've been doing something right if you thought of Hecl:-)
As for the question at hand, in normal, J2SE Java, the other poster
probably wants to look at how something like BeanShell or Groovy
utilizes/handles reflection to get at Java classes and methods.
Hecl, on the other hand, if I do say so myself, is a nice example
because it's very small and simple.

Signature
David N. Welton
- http://www.dedasys.com/davidw/
Linux, Open Source Consulting
- http://www.dedasys.com/