Open AlekSi opened 6 years ago
Working on this. Hope I can get the environment setup for running and testing.
I somehow managed to run 'make', had to also use 'sudo make'. I am stuck after this step. I tried to find any getting started or documentation but didn't find any.
Any help would be appreciated.
Normally, you should not use sudo. How you installed Go? Do you have GOPATH set? Did you download Gosh with go get -v gosh-lang.org/gosh
?;
I installed go via MacPorts.
I tried to setup gosh by doing a git clone and ran make. I had to also uncomment go:generate stringer -type Type
for it to build once in the beginning. After that I was getting permission denied for some go related files, hence had to do sudo make
(which is not the best way to do it, though).
It is probably easier to remove everything and start from scratch.
go version
– it should be 1.11 or 1.11.1.go get -u -v gosh-lang.org/gosh
. This will use default GOPATH at ~/go and put source code into ~/go/src/gosh-lang.org/gosh.env GO111MODULE=on go mod vendor -v
.make init
and make
.If something does not work, please put an output of the all commands above plus go env
.
@JacksonIsaac How can I help you with this?
Currently
true
andfalse
are treated as keywords: https://github.com/gosh-lang/gosh/blob/5198cfb34427a8fd46e06b811a8fd4525c2b4eef/scanner/scanner.go#L61-L63But they are normal predeclared identifiers like
println
. We should treat them as such. We also should remove special token types for them.Scanner and parser should return them as identifiers, and they should be added into built-in objects.