File: Test.java

package info (click to toggle)
javacc4 4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,664 kB
  • sloc: java: 16,340; xml: 543; sh: 25; makefile: 18
file content (15 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (24)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import java.io.*;

class Test
{
   public static void main(String[] args) throws Exception
   {
      Reader fr = null;
      if (args.length == 2)
         fr = new InputStreamReader(new FileInputStream(new File(args[0])), args[1]);
      else
         fr = new InputStreamReader(new FileInputStream(new File(args[0])));
      JavaParser jp = new JavaParser(fr);
      jp.CompilationUnit();
   }
}