Usage
SimpleMumbler:
./simple/repl [mumbler script]
The REPL is started with no argument.
Requires:
- java
- javac
- ant
TruffleMumbler
Requirements:
- Eclipse
- Current branch of Truffle
- Mercurial (to clone the Truffle repo)
- Java 7 (to build Truffle)
- Java 8 (to build Truffle)
Follow the instruction for building Truffle from their wiki. Follow the instructions to set up Eclipse. See my notes as well if you run into problems.
Once you have Truffle set up with Eclipse you can import the Eclipse project for TruffleMumbler into Eclipse. You’ll need to change the location of your annotation processor jar and make sure the JRE System Library used is the Graal VM you built.
Installing the Truffle’s annotation processing
Be sure to follow the instructions to set up Eclipse before proceeding. In Eclipse select the Mumbler project then go to the menu and select Project -> Properties
. Under the Properties window go to Java Compiler -> Annotation Processing
select Enable project specific settings. Then select Enable annotation processing and Enable processing in editor.
Go to Java Compiler -> Annotation Processing -> Factory Path
and select Enable project specific settings then click Add External JARs…. Under the directory you built Graal go to ${GRAAL_DIR}/graal/com.oracle.truffle.dsl.processor/ap/com.oracle.truffle.dsl.processor.jar
and add it.
Changing the JRE System Library
Be sure to build Graal before proceeding. In Eclipse select the Mumbler project then go to the menu and select Project -> Properties
. Under the Properties window go to Java Build Path
. Go to the Libraries tab. Remove the current System Library. Click Add Library. Select JRE System Library and click Next >. Select Alternate JRE and select the Graal VM you built (e.g., graal-1.8.0_25).
License
Copyright © 2014 Cristian Esquivias
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.