adam-mcdaniel / oakc

A portable programming language with a compact intermediate representation
Apache License 2.0
725 stars 21 forks source link

Fix include #74

Closed adam-mcdaniel closed 4 years ago

adam-mcdaniel commented 4 years ago

This PR moves the include directive logic into TIR. This fixes not being able to include structures from other files. This has various consequences; the largest changes occur in lib.rs and its parse function, which now returns a TIR program instead of an HIR program.

adam-mcdaniel commented 4 years ago

This PR is mostly done, but I really want to document and clean things up before it's merged.