Skip to content
 
 

Repository files navigation

MiniDecaf Web

Web version of the MiniDecaf compiler. Implemented in TypeScript.

Getting Started

Install Dependencies

npm install

Run on Command Line

npm run build
npm run cli <input_file> -- [options]
Options:
  -V, --version               output the version number
  -s, --asm                   generate the RISC-V assembly code instead of executing
  -o, --output <output_file>  save the output to file
  -d, --debug                 debug mode
  -h, --help                  display help for command

Build Website & Run in Browsers

Build JavaScript files for browsers:

npm run build-web

Start a simple HTTP server:

npm run serve

Visit http://127.0.0.1:8080 to preview.

Test

Test one file:

npm run test    # or `npm run test-codegen`

Test all test cases in test/minidecaf-tests:

npm run test-all -- [options]
Options:
  -n <step>                   run all testcases starts from step1 to this step. default is `12`.
  -s                          generate the assembly code (RISC-V) and run in the simulator instead
                              of running as an interpreter.

About

Web version of the MiniDecaf compiler.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages