~jojo/Carth

ref: 2219ea535f4a0fd0afd9000ba5c6918c6b276210 Carth/examples/literate.org -rw-r--r-- 783 bytes
Make main IO Unit, i.e. (Fun RealWorld [Unit RealWorld])
Rename start to main by mapping "main" to "_main" in mangleName

I tried having the carth-level entrypoint be called "main" before, but
it didn't work out since I tried having it compile to "main", and then
add a wrapping main that compiled to something like "outer_main", and
then redefine the entrypoint to "outer_main" when calling clang. That
was messy due to startfiles-related issues, but this way of simply
mapping "main" to "_main" via mangleName seems to work really well!
Add basic import system. Basically C-style include
Literate programming: Compile .org by untangling carth src blocks