|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectS2K
public class S2K
This class is an entry point to the spiglet-to-kanga translator
functionality testing unit. The program's interface is as required by
Homework 5 specification.
Sample usage (where input is a file containing the input
expression string):
java S2K < input
The driver program first parses the source file to create an abstract
syntax tree. Then, a KangaTranslator visitor
then visits the AST and generates along the way a translated Kanga AST.
A formatter and dumper visitors then visit this Kanga AST and
pretty-print the resulting code to standard output. The output of the
program is a formatted Kanga code.
KangaTranslator| Constructor Summary | |
|---|---|
S2K()
|
|
| 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 |
|---|
public S2K()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.io.IOException,
ParseException
java.io.IOException
ParseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||