From a4d7fb2da6a8390b818dae8d07391c7d76e365e9 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Wed, 15 Nov 2023 11:59:15 +0100 Subject: parser: hande const declarations Only symbols are produced, no bytecode is emitted. The constant expressions are evaluated at compile time using the stdlib package go/constant. The parser handles implicit repetition of the last non-empty expression list. The iota symbol is reset to 0 and incremented for each line of a const block. To be done in a next commit: type conversions. --- parser/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parser/README.md') diff --git a/parser/README.md b/parser/README.md index 54fead3..6f3b6dd 100644 --- a/parser/README.md +++ b/parser/README.md @@ -54,8 +54,8 @@ Go language support: - [x] var declaration - [x] type declaration - [x] func declaration -- [ ] const declaration -- [ ] iota expression +- [x] const declaration +- [x] iota expression - [ ] defer statement - [ ] recover statement - [ ] go statement -- cgit v1.2.3