diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-02 17:50:56 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-02 18:29:51 +0900 |
| commit | 2509637fb653cc8f5987736c1485a35245baa9b7 (patch) | |
| tree | 18f5cbc7d750b90d916f4d1db5dc5c823178bb54 /src/ast.h | |
| parent | d81d087caf4fdb9a6ce482133d5c50c3113d13cc (diff) | |
| download | ducc-2509637fb653cc8f5987736c1485a35245baa9b7.tar.gz ducc-2509637fb653cc8f5987736c1485a35245baa9b7.tar.zst ducc-2509637fb653cc8f5987736c1485a35245baa9b7.zip | |
feat: generate .file and .loc directives
Diffstat (limited to 'src/ast.h')
| -rw-r--r-- | src/ast.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2,6 +2,7 @@ #define DUCC_AST_H #include "ducc.h" +#include "io.h" typedef enum { StorageClass_unspecified, @@ -328,6 +329,8 @@ typedef struct { struct AstNode { AstNodeKind kind; + // TODO: currently only limited set of ast nodes have loc field. + SourceLocation loc; Type* ty; union { IntExprNode* int_expr; |
