Skip to content

Commit

Permalink
Resolver supports get expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamled committed Oct 9, 2019
1 parent f65f6ba commit 0e9f74e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jlox/src/dev/hamled/craftinginterpreters/lox/Resolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ public Void visitCallExpr(Expr.Call expr) {
return null;
}

@Override
public Void visitGetExpr(Expr.Get expr) {
resolve(expr.object);
return null;
}

@Override
public Void visitGroupingExpr(Expr.Grouping expr) {
resolve(expr.expression);
Expand Down

0 comments on commit 0e9f74e

Please sign in to comment.