You can generate an mjava tree builder as follows: jtb mjava.input.jj javacc jtb.out.jj javac Main.java If the file Test.java contains an mjava program, then you can build a syntax tree by: java Main < Test.java The syntax tree will be in the file tree.scm. Now start the Scheme system and load the files recscm.scm -- is in the parent directory records.scm interpreter.scm tree.scm You can now invoke the main method in a class C by writing > (run 'c) The main method will be given a dummy argument.