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.
- Host: GitHub
- URL: https://github.com/denvercoder1/jack-to-hack-compiler-ceylon
- Owner: DenverCoder1
- Created: 2020-10-22T10:47:16.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-12T22:04:39.000Z (about 5 years ago)
- Last Synced: 2025-01-16T00:40:12.838Z (about 1 year ago)
- Topics: ceylon, compiler, hack-assembly, jack-language, nand2tetris, parser, tokenizer, vm-language
- Language: Ceylon
- Homepage:
- Size: 508 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```