Exemple #1
0
 public Unit VisitExpressionStmt(Stmt.ExpressionStmt stmt)
 {
     Resolve(stmt.Expression);
     return(new Unit());
 }
Exemple #2
0
 public VoidObject VisitExpressionStmt(Stmt.ExpressionStmt stmt)
 {
     Resolve(stmt.Expression);
     return(VoidObject.Void);
 }
Exemple #3
0
 public LoxVoid VisitExpressionStmtStmt(Stmt.ExpressionStmt stmt)
 {
     Evalutate(stmt.Expression);
     return(null);
 }
Exemple #4
0
 public IEnumerable <string> VisitExpressionStmtStmt(Stmt.ExpressionStmt stmt)
 {
     yield return($"{PrintExpr(stmt.Expression)};");
 }
Exemple #5
0
 public string VisitExpressionStmt(Stmt.ExpressionStmt stmt)
 {
     return(Parenthesize(";", stmt.Expression));
 }
Exemple #6
0
 public LoxVoid VisitExpressionStmtStmt(Stmt.ExpressionStmt stmt)
 {
     Resolve(stmt.Expression);
     return(null);
 }