Our great sponsors
-
c-compiler
A compiler that accepts any valid program written in C. It is made using Lex and Yacc. Returns a symbol table, parse tree, annotated syntax tree and intermediate code.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
This is just a front-end phase of a C compiler, but you should check out this to get an understanding of a basic front-end compiler using yacc and lex, which are two tools that were used a lot in generating the first layer of compilers that would be used to compile compilers like C, Pascal, and so on.
See https://github.com/fosslinux/live-bootstrap, and https://github.com/fosslinux/live-bootstrap/blob/master/parts.rst has all the steps we take.
I mean they did (and still do?) intend to bootstrap it. Last I remember they were deciding on whether it should use an OCaml target or HVM. But sadly there really hasn't been much development going on for Haxe since it's written in OCaml which makes it more disappointing work hasn't been done toward this. https://github.com/HaxeFoundation/haxe/issues/6843