summaryrefslogtreecommitdiff
path: root/parser/expr.go
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2023-11-15 22:38:46 +0100
committerMarc Vertes <mvertes@free.fr>2023-11-15 22:38:46 +0100
commita79e558d825c5b777c95c5e098b01391ee36781e (patch)
tree977e5131eee46197a6e72377a168df23ca356948 /parser/expr.go
parenta4d7fb2da6a8390b818dae8d07391c7d76e365e9 (diff)
parser: parse struct type declarations
Recursive structs and embedded structs are not supported yet.
Diffstat (limited to 'parser/expr.go')
-rw-r--r--parser/expr.go2
1 files changed, 1 insertions, 1 deletions
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