Class P2S

java.lang.Object
  extended by P2S

public class P2S
extends java.lang.Object

This class is an entry point to the piglet-to-spiglet translator functionality testing unit. The program's interface is as required by Homework 4 specification.
Sample usage (where input is a file containing the input expression string):

java P2S < input

The driver program first parses the source file to create an abstract syntax tree. Then, a SpigletTranslator visitor then visits the AST and generates along the way a translated Spiglet AST. A formatter and dumper visitors then visit this Spiglet AST and pretty-print the resulting code to standard output. The output of the program is a formatted Spiglet code.

Author:
Santoso Wijaya
See Also:
SpigletTranslator

Constructor Summary
P2S()
           
 
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

P2S

public P2S()
Method Detail

main

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