Socket
Book a DemoInstallSign in
Socket

github.com/profsergiocosta/vm-translator

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/profsergiocosta/vm-translator

Source
Go
Version
v0.0.0-20231007211042-8eec53978d15
Version published
Created
Source

gopath

export GOPATH=$HOME/dev/go

run

go run . ~/apps/nand2tetris/projects/07/StackArithmetic/SimpleAdd/SimpleAdd.vm

go run vmtranslator-go

Testando a versão 7: git checkout e6ca99ab50ae3b62d35f8049a7ea6b488588b2bd

Testando a versão 8: git checkout 813f9e4a8064dee5a4362721e1540352038ae37e

e comentar o codigo write init:

    func (code *CodeWriter) WriteInit() {
        /*
        code.write("@256")
        code.write("D=A")
        code.write("@SP")
        code.write("M=D")
        code.WriteCall("Sys.init", 0)
        */
    }

// todo: checar se o parser está ok reComments, err := regexp.Compile("//.*\n")

Referências

https://eli.thegreenplace.net/2018/go-and-algebraic-data-types/

FAQs

Package last updated on 07 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts