From a79e558d825c5b777c95c5e098b01391ee36781e Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Wed, 15 Nov 2023 22:38:46 +0100 Subject: parser: parse struct type declarations Recursive structs and embedded structs are not supported yet. --- parser/expr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parser/expr.go') diff --git a/parser/expr.go b/parser/expr.go index d626e9e..2cd19c6 100644 --- a/parser/expr.go +++ b/parser/expr.go @@ -34,7 +34,7 @@ func (p *Parser) ParseExpr(in Tokens) (out Tokens, err error) { case lang.Int, lang.String: out = append(out, t) vl++ - case lang.Define, lang.Add, lang.Sub, lang.Assign, lang.Equal, lang.Greater, lang.Less, lang.Mul, lang.Land, lang.Lor: + case lang.Define, lang.Add, lang.Sub, lang.Assign, lang.Equal, lang.Greater, lang.Less, lang.Mul, lang.Land, lang.Lor, lang.Shl, lang.Shr: if vl < 2 { ops = append(ops, t) break -- cgit v1.2.3