com.inxar.syntacs
Class Compile
java.lang.Object
|
+--com.inxar.syntacs.Compile
- public class Compile
- extends Object
Compile
is the command-line interface to compile
grammar files into Translators. The argument should be the name of
the grammar file to compile (can be in XML or "native syntacs"
format. Properties
to be passed to the translator may
be expressed using the -D option.
Two Examples:
java -classpath $CLASSPATH com.inxar.syntacs.Compile ./abb.stt
java -classpath $CLASSPATH com.inxar.syntacs.Compile ./abb.xml
Method Summary |
static void |
main(String[] argv)
Runs the tool; invoke this method with the name of the grammar
to process (filename must end with .xml or
.stt ). |
static Translator |
processSTT(String file,
Properties p)
Processes an STT grammar and returns the
corresponding Translator for the grammar. |
static Translator |
processXML(String uri,
Properties p)
Processes an XML grammar and returns the
corresponding Translator for the grammar. |
main
public static void main(String[] argv)
- Runs the tool; invoke this method with the name of the grammar
to process (filename must end with
.xml
or
.stt
).
processXML
public static Translator processXML(String uri,
Properties p)
- Processes an
XML
grammar and returns the
corresponding Translator
for the grammar.
processSTT
public static Translator processSTT(String file,
Properties p)
- Processes an
STT
grammar and returns the
corresponding Translator
for the grammar.