add samples for ch21

This commit is contained in:
Patrick MARIE 2024-08-27 10:19:45 +02:00
parent 5fb7d361cf
commit 8dcbd48e1c
2 changed files with 6 additions and 1 deletions

View File

@ -1 +0,0 @@
true+false

6
samples/ch21_print.lox Normal file
View File

@ -0,0 +1,6 @@
print 1 + 2;
print 3 * 4;
print (1+1)*2;
print "true" == "false";
print nil == nil;
print !(5 - 4 > 3 * 2 == !nil);