Open chsasank opened 1 month ago
The types we need to implement:
In that order of priority. See #16 for interesting discussion on array type vs alloc
Aggregate types in LLVM are documented here: https://llvm.org/docs/LangRef.html#t-aggregate
Structs will have to be implemented in Brilisp and C-Lisp. As with the other features, Brilisp structs will mirror LLVM structs, and C-Lisp structs will extend that to provide something more typical of a high-level language.
Tentative design decisions for Brilisp structs:
alloc
and accessed through pointers only, just like arraysThis is done, right?
Ah, yes. We still don't have characters.
Partly resolved by #68
Add floating point types
https://capra.cs.cornell.edu/bril/lang/float.html
and tests:
https://github.com/sampsyo/bril/tree/main/test/interp/float
Look up how do we add char and stuff too