aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
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;