@vishvas mahodaya
somehow I missed reading your reply....
so yeah, the idea behind the "samskritam-dsl" is to eventually allow non-programmers use this kind of simple language to come up with lexical/syntactical constructs. Right now the code is all meta programming and there is not really any "dsl" per se. But that is the eventual goal - to create a dsl that will be usable by non-programmers too in an interactive fashion. And expose several of these functionalities as a webservice.
Anyway I finally checked the code into github with a few more enhancements - like converting a text to unicode etc, some more samjna sutras, direct iteration of varnas on a string (instead of going through a list everytime). For eg 'kr.s.Na:'.each { it } will yield each varna - k, r., s., N, a: -> really useful if and when using itrans scheme which has multi-chars like R^i, LLI etc...
The Main.groovy contains the test cases.. For eg we can now do like 'suklAmbaraD.aram'.unicode() and it will result in unicode
शुक्लांबरधरं .
The git repo is
https://github.com/vasya10/samskritam, the project is samskritam-dsl, has eclipse settings and needs groovy-1.8.4. if using eclipse, highly recommend installing the plugin SpringSource toolkit called STS.
Personally I tried similar stuff in java a few years ago and after creating several wrapper classes, iterators, interfaces, patterns, I just gave up. It was just too verbose and not worth the time. Groovy helped accomplish the same in just a couple of weeks, besides providing some great meta-programming capabilities.
yes i do plan to start using log4j soon.