org.xwt.util
Class Preprocessor

java.lang.Object
  extended byorg.xwt.util.Preprocessor

public class Preprocessor
extends java.lang.Object

A VERY crude, inefficient Java preprocessor //#define FOO bar baz -- replace all instances of token FOO with "bar baz" //#replace foo/bar baz/bop -- DUPLICATE everything between here and //#end, replacing foo with bar and baz with bop in the *second* copy Replacements are done on a token basis. Tokens are defined as a sequence of characters which all belong to a single class. The two character classes are: - [a-zA-Z0-9_] - all other non-whitespace characters


Constructor Summary
Preprocessor()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Preprocessor

public Preprocessor()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException