c3d / xl

A minimalist, general-purpose programming language based on meta-programming and parse tree rewrites
GNU General Public License v3.0
270 stars 15 forks source link

Define the interface of types #11

Open c3d opened 4 years ago

c3d commented 4 years ago

Define the precise interface of a type, and how it interacts with the compiler.

There is the beginning of a very crude definition of what a type is. It needs to be fleshed out, and to interface correctly with both the interpreter and the compiler.

There will be some "meta" connections here, since type is itself a type, so I'm afraid the full definition cannot be given solely in XL without resorting to a builtin trick along the way.