summaryrefslogtreecommitdiff
path: root/comp
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2026-01-26 18:44:29 +0100
committerMarc Vertes <mvertes@free.fr>2026-01-26 18:44:29 +0100
commitaa5861917ac2543f85bf4cfefbb69cf501d4de41 (patch)
tree94122ea3167c295da822f03d075a085b4f87e9ea /comp
parentece8bdbc45afc3ea626db884ea3283d9a8395ae5 (diff)
fix: improve multi assignHEADmain
Do not consider assign operators in expression handling, they are part of statements. Isolate parsing of left hand side and right hand side in assignments.
Diffstat (limited to 'comp')
-rw-r--r--comp/compiler.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/comp/compiler.go b/comp/compiler.go
index 4817914..37ed0bd 100644
--- a/comp/compiler.go
+++ b/comp/compiler.go
@@ -262,7 +262,6 @@ func (c *Compiler) Generate(tokens parser.Tokens) (err error) {
// It could be either an undefined symbol or a key ident in a literal composite expr.
s = &symbol.Symbol{Name: t.Str}
}
- log.Println("Ident symbol", t.Str, s.Local, s.Index, s.Type)
push(s)
if s.Kind == symbol.Pkg || s.Kind == symbol.Unset {
break