diff options
| author | Mel <einebeere@gmail.com> | 2022-07-28 21:18:09 +0000 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-07-28 21:18:09 +0000 |
| commit | 895120776a0ae4dd121029f1730d29ca886e201e (patch) | |
| tree | 98e4771fd83ec88d559de95f058f724747405f1a /pkg/lang/ast/expr.go | |
| parent | d79973cb9df8660fe89810507557f5ba86256f30 (diff) | |
| download | jinx-895120776a0ae4dd121029f1730d29ca886e201e.tar.zst jinx-895120776a0ae4dd121029f1730d29ca886e201e.zip | |
Fix nested stacked exprs and parse members
Diffstat (limited to 'pkg/lang/ast/expr.go')
| -rw-r--r-- | pkg/lang/ast/expr.go | 6 |
1 files changed, 6 insertions, 0 deletions
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 } |
