|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.yam.YamCommand
public class YamCommand
Command-line programme for YAM translation.
NOTE: this class uses an outdated implementation of the top-level
YAM API which should not be used by API clients. See YamFile for
the real deal.
| Constructor Summary | |
|---|---|
YamCommand()
Construction. |
|
| Method Summary | |
|---|---|
String |
getVersion()
Get the language version number. |
static void |
main(String[] args)
Main function. |
String |
printErrors(YamParseTree parseTree)
Print errors and warnings from parsing. |
YamParseTree |
translate(Reader yamReader,
Writer outputWriter,
YamFile.FileType outputType,
File sourceDir)
Translate to a particular target language. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public YamCommand()
| Method Detail |
|---|
public YamParseTree translate(Reader yamReader,
Writer outputWriter,
YamFile.FileType outputType,
File sourceDir)
throws gate.util.GateException
yamReader - A reader which sources the YAM document.outputWriter - A writer to which the translation is streamed.outputType - A flag signalling which target to produce.sourceDir - A file pointing to the directory in which the source YAM
document lives (used to find included files that are relative paths).
gate.util.GateException - if parsing or translation fails, or if
the outputType is invalid.public String getVersion()
public String printErrors(YamParseTree parseTree)
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||