Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gentee/gentee
Gentee - script programming language for automation. It uses VM and compiler written in Go (Golang).
https://github.com/gentee/gentee
automation compiler embedded-language go golang language programming-language script script-engine scripting-language virtual-machine
Last synced: 3 months ago
JSON representation
Gentee - script programming language for automation. It uses VM and compiler written in Go (Golang).
- Host: GitHub
- URL: https://github.com/gentee/gentee
- Owner: gentee
- License: mit
- Created: 2018-01-14T15:49:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-19T00:11:45.000Z (about 1 year ago)
- Last Synced: 2024-07-31T20:51:17.770Z (5 months ago)
- Topics: automation, compiler, embedded-language, go, golang, language, programming-language, script, script-engine, scripting-language, virtual-machine
- Language: Go
- Homepage: https://docs.gentee.org
- Size: 817 KB
- Stars: 132
- Watchers: 4
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - gentee - Embeddable scripting programming language. (Embeddable Scripting Languages / Search and Analytic Databases)
- awesome-repositories - gentee/gentee - Gentee - script programming language for automation. It uses VM and compiler written in Go (Golang). (Go)
- awesome-go-extra - gentee - script programming language for automation. It uses VM and compiler written in Go (Golang).|95|11|0|2018-01-14T15:49:05Z|2022-01-25T12:37:14Z| (Embeddable Scripting Languages / Advanced Console UIs)
README
# Gentee script programming language
[![Build Status](https://travis-ci.org/gentee/gentee.png)](https://travis-ci.org/gentee/gentee)
[![Go Report Card](https://goreportcard.com/badge/github.com/gentee/gentee)](https://goreportcard.com/report/github.com/gentee/gentee)
[![GoDoc](https://godoc.org/github.com/gentee/gentee?status.svg)](https://godoc.org/github.com/gentee/gentee)Gentee is a free open source script programming language. The Gentee programming language is designed to create scripts to automate repetitive actions and processes on your computer. If you use or plan to use .bat files, bash, PowerShell or special programs to automate actions, then try doing the same thing with Gentee.
Want to see a sample application that successfully uses the Gentee programming language? Take a look at **[Eonza](https://www.eonza.org/)**, a free cross-platform program for easy creation and management of scripts.
## Documentation
- [Gentee programming language (English)](https://docs.gentee.org/)
- [Язык программирования Gentee (Russian)](https://ru.gentee.org/)All documentation is available on [GitHub](https://github.com/gentee/docs-gentee).
## Download
- [Linux amd64](https://github.com/gentee/gentee/releases/download/v1.20.0/gentee-1.20.0-linux-amd64.zip)
- [Windows amd64](https://github.com/gentee/gentee/releases/download/v1.20.0/gentee-1.20.0-windows-amd64.zip)
- [macOS amd64](https://github.com/gentee/gentee/releases/download/v1.20.0/gentee-1.20.0-darwin-amd64.zip)You can download other binary distributions for Linux, macOS, Windows [here](https://github.com/gentee/gentee/releases).
## Go integration
You can use the Gentee compiler and virtual machine in **golang** projects without any restrictions.
Documentation is available [here](https://docs.gentee.org/golang/howtouse).## How to run Gentee scripts
* [Download the binary version](https://github.com/gentee/gentee/releases) of Gentee compiler for your operating system or build the *gentee* executable file from *cli/gentee.go* using [go compiler](https://golang.org/dl/).
```
$ go get -u github.com/gentee/gentee
$ cd gentee/gentee/cli
$ go build
```
* Specify the script file when running *gentee*. The script file can have any extension.
```
Linux: ./gentee myscript.g
Wndows: gentee.exe myscript.g
```
* Also, you can associate the *gentee* program with script files in your operating system.### Gentee compiler/interpreter
```gentee [-ver] [-t] [command-line parameters for script]```
By default, the program prints the output of the script to the console and returns 0 if successful.
#### Command line parameters
* **scriptname** - full or relative path to the script file. You can specify the command line parameters for the script after the script file name.
* **-ver** - show the current version of Gentee language.
* **-t** - test the script. When using this parameter, the script must have the **result** parameter in the header with the expected value ([example](https://github.com/gentee/gentee/blob/master/test/scripts/ok.g)). In this mode, the program does not output the result of
the script execution to the console. If the result does not match, an error message is displayed and an error code 4 is returned.#### Error code
Code | Description
-----|----------
1 | The script file was not found.
2 | Compilation error.
3 | Runtime Error.
4 | The result is erroneous at start with the **-t** parameter.## Support
If you have any questions and suggestions or would like to help in the development, [add your issue here](https://github.com/gentee/gentee/issues).
## License
[MIT](https://github.com/gentee/gentee/blob/master/LICENSE)
Copyright (c) 2018-present, Alexey Krivonogov