From 33e71ba97fd3df598daa217ec36a48334136dcfc Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 21 Oct 2021 11:18:49 +0200 Subject: feat(tazjin/rlox): Implement else clauses Change-Id: I0bc2333c0b4dd3e2e584a90d0d15b28c48130f03 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3740 Tested-by: BuildkiteCI Reviewed-by: tazjin --- users/tazjin/rlox/examples/if.lox | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'users/tazjin/rlox/examples') diff --git a/users/tazjin/rlox/examples/if.lox b/users/tazjin/rlox/examples/if.lox index b59f00b20161..5f335c0e8b29 100644 --- a/users/tazjin/rlox/examples/if.lox +++ b/users/tazjin/rlox/examples/if.lox @@ -1,5 +1,7 @@ -if (true) { +if (false) { print "yes"; +} else { + print "no"; } print "afterwards"; -- cgit 1.4.1