Correct ternary if/when parsing

This commit is contained in:
gingerBill
2020-12-06 00:15:35 +00:00
parent 80fead1de5
commit d94414b0f4
3 changed files with 14 additions and 44 deletions
+3 -4
View File
@@ -214,9 +214,9 @@ Ternary_Expr :: struct {
Ternary_If_Expr :: struct {
using node: Expr,
x: ^Expr,
x: ^Expr,
op1: tokenizer.Token,
cond: ^Expr,
cond: ^Expr,
op2: tokenizer.Token,
y: ^Expr,
}
@@ -225,7 +225,7 @@ Ternary_When_Expr :: struct {
using node: Expr,
x: ^Expr,
op1: tokenizer.Token,
cond: ^Expr,
cond: ^Expr,
op2: tokenizer.Token,
y: ^Expr,
}
@@ -569,7 +569,6 @@ Distinct_Type :: struct {
Opaque_Type :: struct {
using node: Expr,
tok: tokenizer.Token_Kind,
type: ^Expr,
}