Skip to content

Instantly share code, notes, and snippets.

@lann
Created June 17, 2019 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lann/a50a55d0bf13cf265482c482afd96275 to your computer and use it in GitHub Desktop.
Save lann/a50a55d0bf13cf265482c482afd96275 to your computer and use it in GitHub Desktop.
// Comment
/* Block comment */
type Type uint8
type Ptr *Type
type Vec []Type
type Arr [5]Type
type Attrs u8 [ x = 1, y = "x" ]
type AttrsML Type [
x = 1,
y = "x",
]
type Struct struct {
Type [ x = true ]
field Type [ y = "x" ]
}
import env {
global globly Type
func log(string)
func del() [ x = 1 ]
func add(x i8, y i8) -> i16 [ namespace = "math" ]
}
export {
func exfunc() [ x = 1, b = false, ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment