To use Arden2ByteCode, first download or clone the source.
ctrl + c): https://github.com/PLRI/arden2bytecode.gitUsing the command line
You can clone the source and the submodule with the examples, with Git as follows:
git clone --recursive https://github.com/PLRI/arden2bytecode.git
Now that you got the source, you can build (compile) it. You first need to generate the parser using the SableCC parser generator. There are 2 different ways to build it:
F5), so Eclipse finds the downloaded dependencies.ant, to start the compile procedure.bin/ of the source tree.Both will automatically call the “sableCC” target in the build.xml and generate the .java files for the parser in the packages analysis, lexer, node, parser. This can take some time, but will only happen if the .java files do not exist or are out-of-date.
When the input grammar is changed, you will need to regenerate the parser. Before regenerating the parser, you should call the “clean” target (Project ⇒ Clean… in the Eclipse menu or ant clean using the command line) to ensure there aren’t any old files left behind.
To create a JAR package file and helper scripts to launch it, call the jar target in the build.xml:
jar target in the outline and select Run As ⇒ Ant Build.ant jar.The distributable files will be built in the in the dist/ subdirectory.
To create distributable .tar.gz and .zip files which contain MLM examples, the JAR file and launch scripts, call the dist target.
Having built the source or a JAR file you can now launch the Arden2ByteCode compiler.
run.bat -r <Path to an MLM-File> (Windows) or ./run.sh -r <Path to an MLM-File> (Linux, MacOS)../run.sh -r resource/examples/hello_world.mlmdist/ subdirectory.arden2bytecode -r <Path to an MLM-File> (Windows) or ./arden2bytecode -r <Path to an MLM-File> (Linux, MacOS) on the command line to run it.More information about using the compiler is given in the Command Line Options wiki page.