Javy Programming Language
807605Aug 8 2007 — edited Aug 8 2007Hi,
I am working on a new Java based open-source scripting language.
It has an easily customizable grammar. You can change default grammar file and load your new syntax.
I need your support and advices to improve Javy.
You may checkout:
svn co https://javy.svn.sourceforge.net/svnroot/javy javy
and compile with:
ant jar
this is the basic shell usage:
javy> println("hello javy");
javy> :ev
you may use :ev, :evaluate, :run for evaluate codes
and these are the other samples:
javy> writeToScreen = println;
javy> writeToScreen("hello world");
javy> println("hello world"[6:][::-1]);
javy> :ev
dlrow
javy> j = java.lang;
javy> println(j.String("012345678901234567890").substring(8, 15)[:-2]);
javy> :ev
89012
javy> St = java.lang.String;
javy> type(println(St("sample")));
javy> :ev
javy> javax.swing.JFrame("hello").setVisible(true);
javy> :ev
javy> println("-=" * 20);
javy> :ev
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
transfering method action:
type -> println
javy> a = println;
javy> a.setName("type");
javy> println(a("ali"));
javy> :ev
class javy.lang.String