me tk82c schrieb:
> Hello Randal!
> 
>    I agree with you, but my problem is because this "new language" must
> run on our windows mobile and java micro edition apps.
> 
>    BeanShell doesn't allow this and use a lot of APIs that are from
> desktop world (reflection, for example).
> 
>    I agree with you that Java is not a good language to act as script
> language. But what I'm really looking for is a way to create a small
> script language that conforms to any standard (Python for example) and
> can be extended easily.
> 
>    ANTLR is a good way? There is any solution out of box that i can just
> get and use it to improve later without have to learn all about ANTLR?
> 
>    Get a already implemented grammar will help and save the day? If so
> could you give the way to use it?
> 
> Thanks!
> 
> tk

What about using JRuby? Ruby is scripting language, can be extended
easily and runs via JRuby on the Java platform. Or is JRuby too big for
your purposes? Although I wonder why a wep app is executed on such tiny
devices in the first place...

Johannes
> 
> 
> 
> On Fri, Oct 31, 2008 at 12:03 AM, Randall R Schulz <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
>     On Thursday 30 October 2008 18:25, me tk82c wrote:
>     > Hello Everybody!
>     >
>     > I'm trying to create a new language to allow my users to write small
>     > scripts in our web app.
>     >
>     > There is any short way to do that? Something like, download the
>     > existent java grammar from ANTLR and implement the specific functions
>     > that users will use in my app with this "Java" version.
> 
>     I don't think Java is a good model or pattern for an extension or
>     application scripting language.
> 
>     I am personally fond of Lisp and the general use of S-Expressions for
>     programming languages of all stripes, but many people feel such
>     languages cumbersome.
> 
>     You'd probably be best advised to craft a language specific to the
>     system it will control or drive and which will seem natural to its
>     users.
> 
>     ANTLR will help you detect and either eliminate or accommodate any
>     abiguities in the grammar you devise, which is one of its many virtues.
> 
>     And if Java really _is_ a good language for your purposes, then perhaps
>     BeanShell would be appropriate. You should probably also consider,
>     JavaScript or another JSR-223-compliant language before starting out
>     from scratch inventing a scripting language.
> 
>     Lastly, there are several dynamic languages that integrate well with
>     Java and which can serve as scripting languages for programs written in
>     Java. They include (but are by no means limited to) Groovy, Scala and
>     Clojure.
> 
> 
>     In short, don't invent something you don't need and don't use a language
>     that is too low-level (by which I mean Java itself) for your intended
>     requirements and audience.
> 
> 
>     > Please, help!
>     >
>     > tk
> 
> 
>     Randall Schulz
> 
>     List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
>     Unsubscribe:
>     
> http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 
> List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address
> 


List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to