go-interpreter / ssainterp

A Golang interpreter, built upon golang.org/x/tools/go/ssa/interp
MIT License
58 stars 9 forks source link

go run: no go files listed #7

Open ZainQasmi opened 6 years ago

ZainQasmi commented 6 years ago

Can anyone help me on how to run this? I am running go version 1.9.2

go run ssainterp-master gives error go run: no go files listed

go build and go install works fine

sbinet commented 6 years ago

go run needs to be given a set of .go files that it will compile on the fly and then exec the resulting binary.

you seem to try to give it a binary instead.

elliott5 commented 6 years ago

This repository is not working, that is why the README.md says:

NOT WORKING, PLEASE HELP

The code is built on a previous version of golang.org/x/tools/go/ssa/interp but has not kept pace with changes to that package.

To help, and make this package work again, it needs to be brought back in line with that one.

Alternatively, to just see an interpreter in action, go to golang.org/x/tools/go/ssa/interp and try it out!