diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-22 14:02:48 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-22 14:02:48 -0400 |
| commit | ad51b208b4924d04f1d6a804178a67994b4f9e59 (patch) | |
| tree | 9ae29e0af02b7406a0cf07fdd8b0dd7fdac0aedf /ast.h | |
| parent | 2055439be4f5053b9a4d631cefd8bb7c83a8e4e3 (diff) | |
Overhaul of import syntax. Now everything uses `use`: `use foo`, `use
./foo.tm`, `use <foo.h>`, `use libfoo.so`
Diffstat (limited to 'ast.h')
| -rw-r--r-- | ast.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -122,7 +122,7 @@ typedef enum { StructDef, EnumDef, LangDef, Index, FieldAccess, Optional, DocTest, - Import, Use, + Use, LinkerDirective, InlineCCode, } ast_e; @@ -291,10 +291,8 @@ struct ast_s { bool skip_source:1; } DocTest; struct { - const char *path; - } Import; - struct { const char *name; + enum { USE_LOCAL, USE_MODULE, USE_SHARED_OBJECT, USE_HEADER } what; } Use; struct { const char *directive; |
