Support matrix type in core:odin

This commit is contained in:
gingerBill
2021-10-27 23:49:37 +01:00
parent 793a6479ef
commit 90d587df13
5 changed files with 84 additions and 20 deletions
+17
View File
@@ -224,6 +224,15 @@ Slice_Expr :: struct {
close: tokenizer.Pos,
}
Matrix_Index_Expr :: struct {
using node: Expr,
expr: ^Expr,
open: tokenizer.Pos,
row_index: ^Expr,
column_index: ^Expr,
close: tokenizer.Pos,
}
Call_Expr :: struct {
using node: Expr,
inlining: Proc_Inlining,
@@ -739,3 +748,11 @@ Relative_Type :: struct {
tag: ^Expr,
type: ^Expr,
}
Matrix_Type :: struct {
using node: Expr,
tok_pos: tokenizer.Pos,
row_count: ^Expr,
column_count: ^Expr,
elem: ^Expr,
}