Begin work on matrix type

This commit is contained in:
gingerBill
2021-10-18 16:52:19 +01:00
parent 7aac8df2f2
commit 4c655865e5
14 changed files with 367 additions and 9 deletions
+7
View File
@@ -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 {