ref: a71b06b4db8ff52d5da087cb36528cadad343793
parent: d626bfc93b1df80a39432a0077cc6febf056fee6
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Feb 17 19:42:59 EST 2017
Composite types is a shitty name. Constructed types is not a shitty name.
--- a/doc/lang.txt
+++ b/doc/lang.txt
@@ -1909,13 +1909,13 @@
typeid: ident | ident "(" typarams ")"
typarams: typaram ("," typaram)*
type: structdef | uniondef | tupledef |
- compound | generic | "..."
+ constructed | generic | "..."
structdef: "struct" structbody ";;"
uniondef: "union" unionbody ";;"
tupledef: "(" type ("," type)* ")"
generic: typaram ["::" traitlist]
traitlist: name | "(" name ("," name)
- compound: functype | sicetype | arraytype | ptrtype | void | name
+ constructed: functype | sicetype | arraytype | ptrtype | void | name
functype: "(" arglist "->" type ")"
arglist: [arg ("," arg)*]
arg: name ":" type