Gox Language
《 Gox Language    is a free, open-source script language or a interpreter written by Golang. Golang is not required to be installed. Gox is only in one executable file, green and fast. And Gox provides a modern GUI programming ability(an embedded Gox code editor is also provided), and it's cross-platform, native, no dependencies and convenient.

Gotx is a Golang interpreter based on Yaegi. It could directly run Golang-like code files which in almost the same syntax as Golang. Installation of Golang is not required to run GotX code, it's convenient especially for running/debugging on remote servers. Most of the standard libraries and some useful 3rd-party libraries are included.

GUI written by Gox Language itself


Download (Gox Version 0.991a, Gotx Version 0.989a)

Installation
  • Download the latest Gox executable file or zip file.
  • Then put it into a directory in the system path. If you download the zip file, extract it first.
  • Now it's ready to go.
  • If you would like to use LCL for GUI programming, download the LCL library file and place it in the same path with the Gox executable. Extract it first if downloaded file is in zip format.
  • Gox command-line only version and Gox tiny version are also provided here. Tiny version removed some minor features.
  • Further more, the document is here in Github or here in Gitee.
  • Gox语言的中文简介可以从这篇文章开始看起,或到这里看更多开发指南文章。
  • Gotx的中文简介可以从这篇文章开始看起,或到这里看Gotx的Github主页。

Usage

Check the version.

gox -version

Show help.

gox -h

Run a script file.

gox test.gox

And all the switches in Gox should be like "-type=code", not "-type code".

Start the interpreter in REPL mode.

> gox

the REPL runs like this,

> a=1                      
1                          
> b=2.3                    
2.3                        
> a+b                      
3.3                        
> printfln("a: %v", a)     
a: 1                       
                      
> exit()                   
exit status 1              
						

use "quit()" or "exit()" function to exit.