Mozilla/mozilla/js/js2/java/Brenda.java
rogerl%netscape.com 7d4dfd4ad3 # Not a part of SeaMonkey
git-svn-id: svn://10.0.0.236/trunk@29435 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 16:22:20 +00:00

16 lines
437 B
Java

import java.io.*;
class Brenda {
public static void main(String[] args) {
try {
JSLexer lexer = new JSLexer((args != null) ? new DataInputStream(new FileInputStream(args[0])) : new DataInputStream(System.in));
JSParser parser = new JSParser(lexer);
ExpressionNode tree = parser.expression(true, true);
System.out.println(tree.print(""));
} catch(Exception e) {
System.err.println("exception: "+e);
}
}
}