Skip to content

Commit

Permalink
updated the readme with correct instructions for running Maker, added…
Browse files Browse the repository at this point in the history
… a convenience script for running Maker and fixed some problems with FiveTran related to the new project structure.
  • Loading branch information
JohnEarnest committed Nov 6, 2011
1 parent a865bd2 commit 3b09ca2
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.class
*.DS_Store
*.before
*.after
Expand Down
10 changes: 8 additions & 2 deletions Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Mako has two stacks- a parameter stack and a return stack. Most MakoVM instructi

The Maker source files provided in the examples directory can be executed by compiling Maker and then invoking it with a filename and the '--run' flag. Without the flag, Maker will simply print a disassembly of the prepared Mako memory image.

java Maker /examples/Pong/Pong.fs --run

To compile, run `ant` from the top directory.

To run an example, invoke Maker from the command line:

java -jar dist/Maker.jar /examples/Pong/Pong.fs --run

Or use the 'maker' script to save a little typing:

./maker /examples/Pong/Pong.fs --run
2 changes: 2 additions & 0 deletions maker
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
java -jar dist/Maker.jar $@
2 changes: 1 addition & 1 deletion tools/Fivetran/Fivetran.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static void main(String[] args) {
compiler.parseFile(args[0]);
MakoRom rom = compiler.compile();
if (Arrays.asList(args).contains("--run")) {
Mako.exec(rom.toArray());
Mako.exec(rom.toArray(), false);
}
}

Expand Down
10 changes: 5 additions & 5 deletions tools/Fivetran/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
</target>

<target name="stage" depends="clean">
<copy file= "../../Mako.java" todir="." />
<copy file= "../../MakoVM.java" todir="." />
<copy file= "../../MakoRom.java" todir="." />
<copy file= "../../MakoConstants.java" todir="." />
<copy file= "../../src/Mako.java" todir="." />
<copy file= "../../src/MakoVM.java" todir="." />
<copy file= "../../src/MakoRom.java" todir="." />
<copy file= "../../src/MakoConstants.java" todir="." />
<java
classname="Maker"
classpath="../../"
classpath="../../build/"
>
<arg line="base/BaseRom.fs base/BaseRom"/>
</java>
Expand Down

0 comments on commit 3b09ca2

Please sign in to comment.