gentee is a programming language created in 2018 by Alexey Krivonogov.
#981on PLDB | 6Years Old |
git clone https://github.com/gentee/gentee
Script programming language for automation. It uses VM and compiler written in Go (Golang).
#!/usr/local/bin/gentee
# stdin = 1024\n384\n0
// Copyright 2019 Alexey Krivonogov. All rights reserved.
// Use of this source code is governed by a MIT license
// that can be found in the LICENSE file.
func gcd( int left right ) int
{
if right == 0 : return left
return gcd( right, left % right )
}
run {
str input
int left right
Println("This program finds the greatest common divisor by the Euclidean Algorithm.")
while true
{
left = int( ReadString( "Enter the first number ( enter 0 to exit ): "))
if left == 0 : break
right = int( ReadString( "Enter the second number: "))
Println("GCD = \{ gcd( left, right )}")
}
}
Feature | Supported | Example | Token |
---|---|---|---|
Comments | ✓ | // A comment | |
Line Comments | ✓ | // A comment | // |
Semantic Indentation | X |