From 8d2811be8706c208ce1c479d3b19d1a404f963c8 Mon Sep 17 00:00:00 2001 From: Aidan Date: Sun, 23 May 2021 21:06:18 -0700 Subject: [PATCH] squash! updated readme to improve documentation --- Readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 6223f87..4d99973 100644 --- a/Readme.md +++ b/Readme.md @@ -6,7 +6,8 @@ This shell was created to have extremely simple syntax. S-Expressions were chose ## Basic Syntax When in doubt the `print_ast` utility can be used to examine the output of the Lexing and Parsing process. Here you can spot any bugs regarding syntax. -`$ print_ast (example invocation` + +`$ print_ast (example invocation)` ### Lists Any sequence of items within a set of parenthesis is a list. @@ -39,7 +40,7 @@ Function call: `(append () 1 2 3)` System binary call: `(vim Readme.md)` -Control flow statement (enabled by function call): `(if (eq "example" (fread 'test_file')) (print "test worked) (rm -rf /))` +Control flow statement: `(if (eq "example" (fread 'test_file')) (print "test worked) (rm -rf /))` There may be alternative REPLs, officially or from community members, that do not exhibit this behavior.