Beispiel #1
0
 public object VisitVariableExpr(Expr.Variable expr)
 {
     return(environment.Get(expr.Name));
 }
Beispiel #2
0
 public Class(Token name, Expr.Variable superclass, List <Stmt.Function> methods)
 {
     this.name       = name;
     this.superclass = superclass;
     this.methods    = methods;
 }
Beispiel #3
0
 public string VisitVariableExpr(Expr.Variable expr)
 {
     return(expr.Name._lexme);
 }