diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-18 16:52:19 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-18 16:52:19 +0100 |
| commit | 4c655865e5d9af83a98c137609b01972f4e51beb (patch) | |
| tree | 2963a8f22c8e2a54dc7f081834b72a6081568842 /src/parser.hpp | |
| parent | 7aac8df2f2ddb89ffa8b1d096f41d89e689a2293 (diff) | |
Begin work on matrix type
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index f1779bdbc..b58047dfd 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -407,6 +407,7 @@ AST_KIND(_ExprBegin, "", bool) \ bool is_align_stack; \ InlineAsmDialectKind dialect; \ }) \ + AST_KIND(MatrixIndexExpr, "matrix index expression", struct { Ast *expr, *row_index, *column_index; Token open, close; }) \ AST_KIND(_ExprEnd, "", bool) \ AST_KIND(_StmtBegin, "", bool) \ AST_KIND(BadStmt, "bad statement", struct { Token begin, end; }) \ @@ -657,6 +658,12 @@ AST_KIND(_TypeBegin, "", bool) \ Ast *key; \ Ast *value; \ }) \ + AST_KIND(MatrixType, "matrix type", struct { \ + Token token; \ + Ast *row_count; \ + Ast *column_count; \ + Ast *elem; \ + }) \ AST_KIND(_TypeEnd, "", bool) enum AstKind { |