An attempt at a single pass LLVM frontend in ~3000 lines of C without external dependencies, malloc, or an AST. Included are some graphical examples. The IR isn't perfect, and the README touches on one particular downfall
Comments
mock-possum•2h ago
What’s the connection to the snake clone or a half-byte?
binyang_qiu•28m ago
Doing this in ~3k LOC C without malloc or an AST is honestly pretty impressive. Interested to see how far the IR can scale.
mock-possum•2h ago