We provide you with a reference compiler for the Amy language that you can use to explore the expected behavior of your own compiler. The reference compiler is available here. You can run it as follows:
java -jar amyc-assembly-1.7.jar [options] [input files]
To see the list of available options do
java -jar amyc-assembly-1.7.jar --help
The easiest way to execute a program is to run it in --interpret mode. If you want to generate WebAssembly binary code, you should follow these steps:
-
Install Node.js (also known as
node). We have tested amyc withnodeversion 24, though other versions might work. See the Node.js website for installation instructions. -
Make sure the
wat2wasmexecutable is visible, i.e., it is in the system path or, for Linux or Mac, you are at the toplevel of theamycdirectory. -
Run
npm install deasyncin the directory you plan to runamyc. -
Run
amycwithout options. You will get a few output files. -
Run
node <output file>.js
Bug Reports
We welcome bug reports! Please use the discussions on Canvas for this purpose.