aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/README.md b/README.md
index f5881f1..3f62d29 100644
--- a/README.md
+++ b/README.md
@@ -23,9 +23,15 @@ Valid myslip s-expressions may be atoms of different types
or lists of them, though not all syntactically valid
myslip expressions are ones that can be evaluated.
+The following is s-expressions explained intuitively in
+something that looks a bit like a BNF:
+```
S-expression := Atom | List
-Atom := TODO
+Atom := Operator | Value | Variable ...
List := (S-expression ... S-expression)
+```
+Don't take it to be exact. For example lists are actually
+implemented as linked lists.
The myslip interpreter performs type checking on
s-expressions and evaluates them according to polish
@@ -65,7 +71,9 @@ $ myslip
Exit the REPL by pressing CTRL+C, CTRL+D or entering "exit".
For a quick reference on how to use the `myslip` command,
-see `myslip --help`.
+see `myslip --help`. It also contains additional features
+which are omitted here as they are not relevant for
+grading.
Running `myslip filename.slip` tries to read a file named
`filename.slip` as an s-expression and evaluates it.