[antlr-interest] Javy Programming Language
Fırat KÜÇÜK
firatkucuk at gmail.com
Wed Aug 8 13:02:50 PDT 2007
Hi,
I am working on a new Java based OPENSOURCE (LGPL) scripting language.
It has an easily __customizable__ grammar. You can change default grammar
file and load your new syntax.
and works with antlr v3 grammar.
simply change javy.g antlr v3 grammar and just type:
javy> :gr mygrammar /home/path/to/Javy.g
GRAMMAR GENERATED
javy> :sg
ACTIVE GRAMMAR : javy
and start to use
this is the default javy grammar:
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
I need your support and advices to improve this open-source project.
--
Öğr. Gör. Fırat KÜÇÜK
ADAMYO Distance Learning
SAKARYA University / TURKEY
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070808/6c36368a/attachment.html
More information about the antlr-interest
mailing list