Patch: register new languages with Kawa
Nic Ferrier
nferrier@tf1.tapsellferrier.co.uk
Fri Dec 20 10:36:00 GMT 2002
This is something Per suggested to me for my EEP (expression entity
pages) project.
It allows you to extend the array of languages available to kawa.
I use it like this:
public static void main(String[] argv)
{
String[] eepDefn = { "eep", ".eep", "EEParser" };
Interpreter.registerLanguage(eepDefn);
// Call the repl to do the work.
kawa.repl.main(argv);
}
All credit for the idea goes to Per but any problems are of my making
/8-)
Nic Ferrier
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: register-language-diff
URL: <http://sourceware.org/pipermail/kawa/attachments/20021220/52563743/attachment.ksh>
More information about the Kawa
mailing list