Created
June 17, 2019 19:17
-
-
Save lann/a50a55d0bf13cf265482c482afd96275 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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