An open API service indexing awesome lists of open source software.

https://github.com/denvercoder1/jack-to-hack-compiler-ceylon

Jack to Hack Compiler in Ceylon completed for Fundamentals of Programming Languages Course, 2020-2021.
https://github.com/denvercoder1/jack-to-hack-compiler-ceylon

ceylon compiler hack-assembly jack-language nand2tetris parser tokenizer vm-language

Last synced: 12 months ago
JSON representation

Jack to Hack Compiler in Ceylon completed for Fundamentals of Programming Languages Course, 2020-2021.

Awesome Lists containing this project

README

          

# Jack to Hack Compiler in Ceylon

Jack to Hack Compiler written in [Ceylon 1.3.3](https://ceylon-lang.org/download/) completed for Fundamentals of Programming Languages Course, 2020-2021.

The project follows the requirements for the [Nand2Tetris course](https://www.nand2tetris.org/course) and compiles Jack Language to VM language and VM language to Hack Assembly.

## Running the VM translator

```
ceylon run vmtranslator
```

Example:

```
ceylon run vmtranslator ./resource/ProgramFlow/FibonacciSeries/ ./resource/ProgramFlow/FibonacciSeries/FibonacciSeries.asm
```

## Running the Jack Compiler

```
ceylon run jacktranslator
```

Example:

```
ceylon run jacktranslator ./resource/11/Pong
```