Groovy Documentation

java.gate.wiki.antlr
Class Tool

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

class Tool

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 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.

private static HashMap overRide

static String version

 
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 Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Field Detail

HTML

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


LATEX

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


WIKI

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


XHTML

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


overRide

private static HashMap overRide


version

static String version


 
Constructor Detail

Tool

Tool()


 
Method Detail

main

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


message

public static void message()
Prints version message.


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.


usage

public static void usage()
Prints the help message.


 

Groovy Documentation