Gone is the GO compiler for .NET.
Come watch it being built: https://twitch.tv/FrankKrueger
Build a compiler to parse the Go Lang:
package main
import "fmt"
func main() {
fmt.Println("Hello, 世界")
}
dotnet build
If you modify Parser.jay
, then please rebuild the parser with:
make
After running the tests a file Output.dll
is created on your desktop.
~/Desktop/Output.dll
Create a config
file - Output.runtimeconfig.json
:
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "3.1.0"
}
}
}
Then run the following command to see the compilier working:
dotnet ~/Desktop/Output.dll
Hello, 世界
Mostly @praeclarum.