[antlr-interest] mantra update
Terence Parr
parrt at cs.usfca.edu
Sat Nov 3 16:28:43 PDT 2007
Hi, updated site:
http://www.linguamantra.org/
and moved doc to wiki:
http://www.antlr.org/wiki/display/Mantra/The+Mantra+Programming+Language
Updated language to 1.0a4. I basically added a for-each loop and
altered conditional expr spec on closure to be consistent. Changes:
// print set elements 3 times
set names = set("Ter", "Tom", "Sriram", "Kay");
for (String name in names) {
println(name);
}
names:println;
names:{String n | println(n);};
also has conditional:
for (string filename in OS.dir(".") where File(filename).isDir()) {
tester.testDir(filename);
}
which forces change to closure for consistency:
list a = ["Tom", "Ter", "Tim"];
a:{string n where n!="Ter" | return n;}:println;
Ter
More information about the antlr-interest
mailing list