/usr/share/doc/javacc/examples/JavaGrammars/Test.java is in javacc-doc 5.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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();
}
}
|