nandtotetris / computer-visualizer

0 stars 0 forks source link

feat: hvm translator stack arithmetic #33

Closed mezzzi closed 4 years ago

mezzzi commented 4 years ago

In our basic computer, a high level language (Jack) is first compiled to an intermediate language that runs on a virtual machine. This PR focuses on building the parser module for the hvm-translator abstraction; the abstraction which translates the hack virtual machine (HVM) intermediate language to an assembly code.

For more description, refer here: https://www.nand2tetris.org/course (Project 7 and 8)

Closes #23

What kind of change does this PR introduce? This PR introduces a new feature by adding a parser module for the HVM Translator abstraction.

mezzzi commented 4 years ago

@mezzzi the book suggest to develop the parser into two stages.

  1. Stack Arithmetic
  2. Memory Access

The test files are also designed for this purpose(to build and test it incrementally). It will also help the reviewer to review it quickly, without focusing on multiple thinigs.

Screen Shot 2020-06-24 at 9 48 41 AM

So please split the PR to two PRs, one for handling stack arithmetic and the other for memory access. @henok-tesfaye sure, I will split it.

mezzzi commented 4 years ago

the work in this PR is transferred to https://github.com/nandtotetris/computer-visualizer/pull/35