com.inxar.syntacs
Class Interpret
java.lang.Object
|
+--com.inxar.syntacs.Interpret
- public class Interpret
- extends Object
Interpret
is the command-line interface to execute test
translations. Two arguments are required:
- The classname
of the grammar which implements
TranslatorGrammar
-
A string to translate. The string is first interpreted to be the
name of a file; if that fails, it passes the string directly to be
translated.
Properties
to be passed to the
translator may be expressed using the -D option. Two Examples:
java -classpath $CLASSPATH \
com.inxar.syntacs.Interpret \
com.inxar.syntacs.translator.test.AbbGrammar "t+f*(id+f)"
java -classpath $CLASSPATH \
com.inxar.syntacs.Interpret \
-Drun-parser-debug=true \
com.inxar.syntacs.translator.test.AbbGrammar ./input-file.txt
Method Summary |
static void |
main(String[] argv)
Runs the tool; invoke this method with the classname of the
grammar to use and either a string to parse or the name of a
file to parse. |
static void |
pause(int len)
|
main
public static void main(String[] argv)
- Runs the tool; invoke this method with the classname of the
grammar to use and either a string to parse or the name of a
file to parse.
pause
public static void pause(int len)