From 036456d6383b0e574f1aa132f668868c3ab839e8 Mon Sep 17 00:00:00 2001 From: Shautvast Date: Fri, 6 Dec 2024 23:11:40 +0100 Subject: [PATCH] explain more --- README.md | 11 +++++++++++ index.html | 17 ++--------------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 27f7dc6..980e572 100644 --- a/README.md +++ b/README.md @@ -36,3 +36,14 @@ What is it? ### Run * npm run start + +* the console has code completion, but right now it's limited: only once there is only 1 alternative, +you can press tab to complete. +* the interpreter is based on 'Lox' from the 'Crafting Interpreters' book. +* use `var` to declare a variable +* `print(...)` prints to the console +* statements must end with ';' (//TODO remove) +* not yet: + * loops + * branching + diff --git a/index.html b/index.html index 0c4897f..19f56e7 100644 --- a/index.html +++ b/index.html @@ -4,22 +4,9 @@ - + szpakowski-lang - - - - - - - - - - - - - - +