Mozilla/mozilla/js/js2/java/Brenda.java
rogerl%netscape.com 691358d9f6 #Not a part of SeaMonkey
git-svn-id: svn://10.0.0.236/trunk@29459 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 19:02:40 +00:00

16 lines
433 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);
ControlNode tree = parser.statements(0);
System.out.println(ControlNode.printAll());
} catch(Exception e) {
System.err.println("exception: "+e);
}
}
}