assyrianic / SourceGo

SourceGo is a transpiler that transforms a subset of Golang-like code to equivalent SourcePawn.
https://forums.alliedmods.net/showthread.php?t=328269
MIT License
25 stars 3 forks source link

Create an SP2Go transpiler #12

Open assyrianic opened 2 years ago

assyrianic commented 2 years ago

One thing that will not help with the adoption of SourceGo (Go dialect for Source engine games) is that many communities have alot of code in SourcePawn so there's not much motivation to adopt SourceGo.

However, a SourcePawn->SourceGo transpiler might help out alot with that.

After making & debugging sptools as a library, we can then translate the SP AST into the Golang AST, a good type-checking, then proceed with pretty printing from there.