|
CalculatorMain.java
|
// FILE. . . . . /home/hak/ilt/src/ilog/language/jaccapps/calc/CalculatorMain.java // EDIT BY . . . Hassan Ait-Kaci // ON MACHINE. . 4j4zn71 // STARTED ON. . Sun Nov 16 06:44:31 2008 // Last modified on Sun Nov 16 06:44:45 2008 by hak
| CalculatorMain.java |
import java.io.File;
public class CalculatorMain
{
public static void main (String args[])
{
try
{
CalculatorTokenizer t;
if(args.length>0)
t = new CalculatorTokenizer(new File(args[0]));
else
t = new CalculatorTokenizer();
try
{ // arg to parse is to enable building the parse tree
// - COMPACT_TREE for the trimmed version
CalculatorParser p = new CalculatorParser(t);
p.parse(p.COMPACT_TREE);
}
catch (Exception e)
{
System.out.println("*** Parsing error: "+e);
}
}
catch (Exception e)
{
System.out.println("*** Tokenizing error: "+e);
}
}
}
This file was generated on Mon Dec 15 15:48:38 PST 2008 from file CalculatorMain.java
by the ilog.language.tools.Hilite Java tool written by Hassan Aït-Kaci