Yet another Lisp transpiler to Go source code.
git clone https://github.com/droptheplot/yal
cd yal
go build
./yal -path hello.yalinput.yal
(package "main")
(import "fmt")
(func main () ()
(fmt.Println (mul 2 3)))
(func mul ((a int) (b int)) (int)
(* a b))output.go
package main
import "fmt"
func main() {
fmt.Println(mul(2, 3))
}
func mul(a int, b int) int {
return a * b
}This is a fun project and is not meant to be used anywhere.
- Declarations (
func,var,package,import) - Arithmetics (
+,-,*,/,%) - Comparisons (
<,>,<=,>=,==,!=) - Boolean operators (
&&,||) - Slice operations (
map) - Control flow statements (
if,switch,return)