pt.compiler
Class ParaTaskParser

java.lang.Object
  extended by pt.compiler.ParaTaskParser

public class ParaTaskParser
extends java.lang.Object

The source-to-source ParaTask compiler. Generates Java code (*.java) from ParaTask code (*.ptjava). The resulting code may then be compiled using a standard Java compiler.

Author:
Nasser Giacaman, Oliver Sinnen

Method Summary
static void main(java.lang.String[] args)
          A command-line option to use the ParaTask compiler.
static void parse(java.io.File file)
          Parse the ParaTask input into standard Java code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static void parse(java.io.File file)
                  throws java.io.IOException
Parse the ParaTask input into standard Java code. Given a starting file (either a *.ptjava file or a folder), recursively generate standard Java code (i.e. the *.java) for every *.ptjava file found.

Parameters:
file - A *.ptjava file, or folder containing (more folders and) *.ptjava files.
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
A command-line option to use the ParaTask compiler. Must supply one file name to parse.

Parameters:
args - The file name