jmeaster30 / ocean

A C-like programming language (get it like sea-like like an ocean lol)
GNU General Public License v3.0
0 stars 0 forks source link

Rename AllocMap to AllocLayout #38

Closed jmeaster30 closed 1 year ago

jmeaster30 commented 1 year ago

Rename AllocMap to AllocLayout so the intent of what the function does is more clear

Should the member names be configurable at runtime? I think probably no but it does seem interesting as a concept

jmeaster30 commented 1 year ago

Maybe move the layout description to the module scope and then we can use a type specifier with AllocLayout to allocate that layout.

Might make some analysis and code gen later a bit simpler

Also might make generating the bytecode a little more straightforward too

jmeaster30 commented 1 year ago

Done!