]> Witch of Git - ivy/commit
Add an extensible framework for adding built-ins
authorCassie Jones <code@witchoflight.com>
Sun, 1 Mar 2020 00:48:44 +0000 (01:48 +0100)
committerCassie Jones <code@witchoflight.com>
Sun, 1 Mar 2020 00:48:44 +0000 (01:48 +0100)
commita4e0f19757a4d01f847dc2128ac28705f20c8f0f
treef989bb034215a0e398a5fc952c1ae7983ddcc953
parent55bd00592439e5ff1485503b6b831868655a0a13
Add an extensible framework for adding built-ins

Now builtins can be written in assembly at the bottom, and they'll be
included and registered in the entry point on-demand by the program.
Only functions that are referenced will be included in the output.

This will need to be extended to handle functions which reference other
functions (like the handling of "true" and "false" if any of the
comparisons are included), but that's a matter of front-end changes.
src/ast.rs
src/lib.rs [new file with mode: 0644]
src/main.rs
src/trans.rs
src/trans/x64.rs