diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-07-30 02:47:07 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-07-30 02:47:07 +0200 |
| commit | 992edc6330e07e5e63b867fc34ebf30250d6dabd (patch) | |
| tree | 8d87a5837c3c5ec4557863302b297ec62e76bded /src/common | |
| parent | 0fc9da70bdc160ec6caf4cf5ffe50408a24d6d7a (diff) | |
working on supporting references
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/ast.odin | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/ast.odin b/src/common/ast.odin index c3be1fe..71f74a4 100644 --- a/src/common/ast.odin +++ b/src/common/ast.odin @@ -67,6 +67,7 @@ keyword_map: map[string]bool = { GlobalExpr :: struct { name: string, + name_expr: ^ast.Expr, expr: ^ast.Expr, mutable: bool, docs: ^ast.Comment_Group, @@ -142,6 +143,7 @@ collect_value_decl :: proc(exprs: ^[dynamic]GlobalExpr, file: ast.File, stmt: ^a if value_decl.type != nil { append(exprs, GlobalExpr { name = str, + name_expr = name, expr = value_decl.type, mutable = value_decl.is_mutable, docs = value_decl.docs, @@ -153,6 +155,7 @@ collect_value_decl :: proc(exprs: ^[dynamic]GlobalExpr, file: ast.File, stmt: ^a if len(value_decl.values) > i { append(exprs, GlobalExpr { name = str, + name_expr = name, expr = value_decl.values[i], mutable = value_decl.is_mutable, docs = value_decl.docs, |