Skip to content

sampathbalivada/vmcode-to-hackassembly-for-jackvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VM Translator

Binary Info

Language: C++
Platform: x86_64
Compiler: g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
OS: Linux/MacOS
Tested On: Ubuntu 20.04 on WSL

Class Architecture

VMTranslator (Codebase)
    |___ Parser (class)
    |___ Code Generator (class)
    |___ Driver (main)

C++ Features Used

  • STL Vector (vector)
  • File Handling (fstream)
  • String Tokenization using String Streams (sstring)
  • C++ Enums

Assumptions and Limitations

Parser:

  • Not checking for special characters or other types of characters in the tokens.
  • Ignores all the token after the third token in a line.
  • Assuming that the input file only contains lowercase characters. (Input Sanitization)

About

Translates Jack VM code to Hack Assembly code.

Topics

Resources

Stars

Watchers

Forks