gate.wiki.antlr
Class Tool

java.lang.Object
  extended by gate.wiki.antlr.Tool

public class Tool
extends Object

This class is the top level class for the YAM language. It is used to translate from YAM to html, latex, and other languages.

Author:
tamara

Field Summary
static String HTML
          The string which can be used to check for the HTML target language.
static String LATEX
          The string which can be used to check for the LaTeX target language.
static String version
           
static String WIKI
          The string which can be used to check for the WikiHTML target language.
static String XHTML
          The string which can be used to check for the XHTML target language.
 
Constructor Summary
Tool()
           
 
Method Summary
static void main(String[] args)
          main procedure processes arguments: -i inputFile -o outputFile -l targetLanguage where targetLanguage can be html or latex -D x=y predefine YAM variable x to be y By default the target language is html, the input is from stdin and output to stdout.
static void message()
          Prints version message.
static void run(Reader in, Writer out, String lang)
          Initializes and runs the YAM engine.
static void usage()
          Prints the help message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static String version

LATEX

public static String LATEX
The string which can be used to check for the LaTeX target language.


HTML

public static String HTML
The string which can be used to check for the HTML target language.


XHTML

public static String XHTML
The string which can be used to check for the XHTML target language.


WIKI

public static String WIKI
The string which can be used to check for the WikiHTML target language.

Constructor Detail

Tool

public Tool()
Method Detail

main

public static void main(String[] args)
                 throws Exception
main procedure processes arguments: By default the target language is html, the input is from stdin and output to stdout.

Throws:
Exception

run

public static void run(Reader in,
                       Writer out,
                       String lang)
Initializes and runs the YAM engine. It reads YAM source from in and outputs the version translated into lang to out.


message

public static void message()
Prints version message.


usage

public static void usage()
Prints the help message.