From 895120776a0ae4dd121029f1730d29ca886e201e Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 28 Jul 2022 21:18:09 +0000 Subject: Fix nested stacked exprs and parse members --- pkg/lang/ast/expr.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkg/lang/ast/expr.go') diff --git a/pkg/lang/ast/expr.go b/pkg/lang/ast/expr.go index b0ed599..aceed18 100644 --- a/pkg/lang/ast/expr.go +++ b/pkg/lang/ast/expr.go @@ -11,6 +11,7 @@ const ( ExprKindUnary ExprKindCall ExprKindSubscription + ExprKindMember ExprKindGroup ExprKindFnLit @@ -57,6 +58,11 @@ type ExprSubscription struct { Key Expr } +type ExprMember struct { + Obj Expr + Key IdentNode +} + type ExprGroup struct { Value Expr } -- cgit 1.4.1