neugram / ng

scripting language integrated with Go
https://neugram.io
BSD 2-Clause "Simplified" License
917 stars 43 forks source link

ng/parser: support array type declaration #149

Closed sbinet closed 6 years ago

sbinet commented 6 years ago

the following fails in ng:

ng> type Slice []int
ng> type Array [2]int
maybeParseType: token=]
ng: typecheck: type int is not an expression