maiah / gone

Programming language (that doesn't really exists) that compiles to Go binary.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gone

Programming language (that doesn't really exists) that compiles to Go binary.

NOTE: Currently in experimental stage! Needs to have a real parser and lexer. Currently it just uses the dumb find-replace method to translate the code to a valid Go source code.

What?

  • It just removes curly-braces { and } to declare an interface, struct, func, if-else, for-loop, and switch-statement and closes it with end keyword.
  • It just removes the type keyword to declare an interface and struct.
  • It just replaces func keyword to fun to declare a function.
  • Then everything is just Go ^_^

Example

hello.gone file

package main

import "fmt"

fun main()
  c := make(chan string)

  go fun()
    c <- "Hello, Gohan"
  end()

  fmt.Println(<-c)
end

Then execute the command below to create Go binary hello or hello.exe (based on your platform).

gone hello.gone
-> hello

Then execute the application:

./hello
-> Hello, Gohan

License

The MIT License (MIT)

Copyright (c) 2015 Maiah Macariola

About

Programming language (that doesn't really exists) that compiles to Go binary.

License:MIT License


Languages

Language:Go 100.0%