aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-09 18:22:12 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-03-09 18:22:12 -0500
commit2b83ab279dbfb77cfd699d6da944c51c2353e64a (patch)
tree820f23b5c418e9d501a9fecf4fc84d2e26158cb2 /ast.h
parent1b8f7307a9c9cef191f6277cea5f2d11ef0a5788 (diff)
Add langs to the language
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/ast.h b/ast.h
index 93d279d7..5da66255 100644
--- a/ast.h
+++ b/ast.h
@@ -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;