feat(tazjin/rlox): Implement simple conditionals
... basically just optional blocks (no else). Change-Id: If091c6b8fdeb6c13a5f3dd284d0a9a87f9f4228d Reviewed-on: https://cl.tvl.fyi/c/depot/+/3739 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
d57e43e161
commit
670662a360
4 changed files with 84 additions and 16 deletions
5
users/tazjin/rlox/examples/if.lox
Normal file
5
users/tazjin/rlox/examples/if.lox
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
if (true) {
|
||||
print "yes";
|
||||
}
|
||||
|
||||
print "afterwards";
|
||||
Loading…
Add table
Add a link
Reference in a new issue