From 323d82a7f235f78d56e26677c7ba54470caea08e Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 12 Oct 2023 17:08:24 +0200 Subject: parser: implement 'for' statement --- parser/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'parser/README.md') diff --git a/parser/README.md b/parser/README.md index d46608c..5dcee63 100644 --- a/parser/README.md +++ b/parser/README.md @@ -11,13 +11,13 @@ bytecode. The input of parser is a list of tokens produced by the scanner. Multiple tokens are processed at once. The minimal set to get -meaningful results (not an error or nil) is a complete statemement. +meaningful results (not an error or nil) is a complete statement. The output of parser is also a list of tokens, to be consummed by the compiler to produce bytecode. The output tokens set is identical to the bytecode instructions set except that: -- code locations may be provided as as labels instead of numerical +- code locations may be provided as labels instead of numerical values, - memory locations for constants and variables may be provided as symbol names instead of numerical values. @@ -60,7 +60,7 @@ Go language support: - [ ] recover statement - [ ] go statement - [x] if statement (including else and else if) -- [ ] for statement +- [x] for statement - [ ] switch statement - [ ] break statement - [ ] continue statement -- cgit v1.2.3