( String [] args )
| 71 | } |
| 72 | |
| 73 | public static void main( String [] args ) |
| 74 | throws IOException, ParseException |
| 75 | { |
| 76 | boolean print = false; |
| 77 | int i=0; |
| 78 | if ( args[0].equals("-p") ) { |
| 79 | i++; |
| 80 | print=true; |
| 81 | } |
| 82 | for(; i< args.length; i++) { |
| 83 | Reader in = new FileReader(args[i]); |
| 84 | Parser parser = new Parser(in); |
| 85 | parser.setRetainComments(true); |
| 86 | while( !parser.Line()/*eof*/ ) |
| 87 | if ( print ) |
| 88 | System.out.println( parser.popNode() ); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | Lookahead for the enhanced for statement. |
nothing calls this directly
no test coverage detected