Well, it's just java code really so you should be able to run javac on all subdirs from the main mantra source dir. Needs antlr v2, v3, and StringTemplate.
How do use mantra with the grammar files,such as mantra.g, SemanticPhase.g, CodeGen.g? and I have used this files with antlrworks, but I find some errors in the file CodeGen.java. Maybe, something is wrong with my steps.
It is different between Java files from source distribution and Java files generated from Mantra.g, SemanticPhase.g, CodeGen.g, Why? Where the Java files in the source distribution comes from? and How can I get an executable java files from grammar files such as Mantra.g, SemanticPhase.g, CodeGen.g?
5 Comments
comments.show.hideNov 30, 2008
Anonymous
How do I build mantra? Specifically, I'm trying to get it running under OSX 10.5.
Dec 01, 2008
Terence Parr
Well, it's just java code really so you should be able to run javac on all subdirs from the main mantra source dir. Needs antlr v2, v3, and StringTemplate.
Mar 30, 2009
Anonymous
How do use mantra with the grammar files,such as mantra.g, SemanticPhase.g, CodeGen.g? and I have used this files with antlrworks, but I find some errors in the file CodeGen.java. Maybe, something is wrong with my steps.
Please give me a more detail
~~~~
Thanks a lot.
Mar 30, 2009
Anonymous
It is different between Java files from source distribution and Java files generated from Mantra.g, SemanticPhase.g, CodeGen.g, Why? Where the Java files in the source distribution comes from? and How can I get an executable java files from grammar files such as Mantra.g, SemanticPhase.g, CodeGen.g?
Mar 31, 2009
Terence Parr
You need to run ANTLR on them. Note that I'm not really supporting this, just showing people an example of antlr.
Ter