diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-09 18:22:12 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-09 18:22:12 -0500 |
| commit | 2b83ab279dbfb77cfd699d6da944c51c2353e64a (patch) | |
| tree | 820f23b5c418e9d501a9fecf4fc84d2e26158cb2 /ast.h | |
| parent | 1b8f7307a9c9cef191f6277cea5f2d11ef0a5788 (diff) | |
Add langs to the language
Diffstat (limited to 'ast.h')
| -rw-r--r-- | ast.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -105,8 +105,7 @@ typedef enum { Skip, Stop, Pass, Return, Extern, - StructDef, - EnumDef, + StructDef, EnumDef, LangDef, Index, FieldAccess, DocTest, Use, @@ -141,6 +140,7 @@ struct ast_s { CORD cord; } TextLiteral; struct { + const char *lang; ast_list_t *children; } TextJoin; struct { @@ -239,6 +239,11 @@ struct ast_s { ast_t *namespace; } EnumDef; struct { + const char *name; + ast_t *namespace; + bool secret:1; + } LangDef; + struct { ast_t *indexed, *index; bool unchecked; } Index; |
