From c902edccd5a91b89b4aa30416b088ce969141877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind?= Date: Mon, 14 Feb 2022 15:30:01 +0100 Subject: [PATCH] Added test for groups and precedence --- exercises/02/vslc/vsl_programs/ps2-parser/if_else.vsl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exercises/02/vslc/vsl_programs/ps2-parser/if_else.vsl b/exercises/02/vslc/vsl_programs/ps2-parser/if_else.vsl index 7d4fbe3..0e18853 100644 --- a/exercises/02/vslc/vsl_programs/ps2-parser/if_else.vsl +++ b/exercises/02/vslc/vsl_programs/ps2-parser/if_else.vsl @@ -1,14 +1,16 @@ func main() begin - var a, b, c, d + var a, b, c, d, e c := 1 a := 3 b := a + c // 4 d := a * 100 + 50 + e := d + 100 * 2 + (50 + 3 * e) print "a", a print "b", b print "c", c print "d", d + print "e", e if a = 14 then print 1, "N", d / 5 + a, "RPR", a, "TERS " else