MCPcopy Index your code
hub / github.com/beanshell/beanshell / main

Method main

src/bsh/Parser.java:73–90  ·  view source on GitHub ↗
( String [] args )

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 5

setRetainCommentsMethod · 0.95
LineMethod · 0.95
popNodeMethod · 0.95
printlnMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected