M2-Planet
M2-Planet copied to clipboard
Add support for compiling QBE
QBE is a compiler backend that aims to be simple to implement and simple to use. With cproc it is self-hosting. It would be nice if M2-Planet could compile QBE, since it would be a step towards using M2-Planet to compile Dozer (ref: https://codeberg.org/notgull/dozer/issues/8).
At the moment it fails with this error:
$ ./bin/M2-Planet -f ~/Projects/c9x/qbe/all.h
/home/jtnunley/Projects/c9x/qbe/all.h:11:ERROR in typedef statement
Missing ;
Ah, it looks like M2-Planet doesn't support unsigned char et al.
Ah, it looks like M2-Planet doesn't support
unsigned charet al.
And now it should support multi token types (including unsigned chat)