We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
else if
1 parent b02b0cf commit 5052a11Copy full SHA for 5052a11
1 file changed
parser/parser_test.go
@@ -669,6 +669,19 @@ world`},
669
Exp1: &IntegerNode{Value: 2},
670
Exp2: &IntegerNode{Value: 3}}},
671
},
672
+ {
673
+ "if a { 1 } else if b { 2 } else if c { 3 } else { 4 }",
674
+ &ConditionalNode{
675
+ Cond: &IdentifierNode{Value: "a"},
676
+ Exp1: &IntegerNode{Value: 1},
677
+ Exp2: &ConditionalNode{
678
+ Cond: &IdentifierNode{Value: "b"},
679
+ Exp1: &IntegerNode{Value: 2},
680
681
+ Cond: &IdentifierNode{Value: "c"},
682
+ Exp1: &IntegerNode{Value: 3},
683
+ Exp2: &IntegerNode{Value: 4}}}},
684
+ },
685
{
686
"1; 2; 3",
687
&SequenceNode{
0 commit comments