-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
It would be nice to support breaking up fathom files into multiple modules, especially as files like opentype.fathom get larger.
I’d imagine imports could go at the top of a file:
module opentype;
import fathom.{ u32be, ... etc ... };
import opentype.common.{ unknown_table, optional_table };
import opentype.tables;
And later:
cvt <- optional_table "cvt " tables.cvt,
fpgm <- optional_table "fpgm" unknown_table,
Imports should be qualified by default, and form a DAG.
Some questions:
- what import syntax should we use?
- how do we find new modules relative to an existing module?
- how do we dump multiple modules for snapshot testing?
- how doe we represent modules in the elaborator/evaluator(s)/etc.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels