From 8dcbd48e1c9ee76ff0e8d015947fdab103faca86 Mon Sep 17 00:00:00 2001 From: Patrick MARIE Date: Tue, 27 Aug 2024 10:19:45 +0200 Subject: [PATCH] add samples for ch21 --- samples/addition.lox | 1 - samples/ch21_print.lox | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) delete mode 100644 samples/addition.lox create mode 100644 samples/ch21_print.lox diff --git a/samples/addition.lox b/samples/addition.lox deleted file mode 100644 index 4fc8bc9..0000000 --- a/samples/addition.lox +++ /dev/null @@ -1 +0,0 @@ -true+false \ No newline at end of file diff --git a/samples/ch21_print.lox b/samples/ch21_print.lox new file mode 100644 index 0000000..d7487c8 --- /dev/null +++ b/samples/ch21_print.lox @@ -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);