/usr/share/doc/javacc/examples/Interpreter/fact.spl is in javacc-doc 5.0-5.
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 | int n;
int fact;
read n;
fact = 1;
while (n > 1)
{
fact = fact * n;
n = n - 1;
}
write fact;
|