Ejemplo n.º 1
0
 public void Interpret(List <AstNode> statements)
 {
     try
     {
         foreach (var stmt in statements)
         {
             Execute(stmt);
         }
     }
     catch (LoxRuntimeException ex)
     {
         Lox.RuntimeError(ex);
     }
 }
Ejemplo n.º 2
0
 internal void Interpret(List <Stmt> statements)
 {
     try
     {
         foreach (Stmt statement in statements)
         {
             Execute(statement);
         }
     }
     catch (RuntimeError error)
     {
         Lox.RuntimeError(error);
     }
 }