summaryrefslogtreecommitdiff
path: root/jpl/PerlInterpreter/PerlInterpreter.java
blob: c26a4f2ba442fcc20d51c39ddb611e1708002952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class PerlInterpreter {
    static boolean initted = false;

    public native void init(String s);
    public native void eval(String s);

//    public native long op(long i);

    public PerlInterpreter fetch () {
	if (!initted) {
	    init("$JPL::DEBUG = $ENV{JPLDEBUG}");
	    initted = true;
	}
	return this;
    }

    static {
	System.loadLibrary("PerlInterpreter");
    }
}