package kawa.lang;

/**
 * Class used to mark an erroreous expression
 * @author	Per Bothner
 */

public class ErrorExp extends Expression
{
  String message;
  public ErrorExp (String message)
  {
    this.message = message;
  }

  public Object eval (Environment env)
       throws UnboundSymbol, WrongArguments, WrongType, GenericError
  {
    // Should not happen
    throw new GenericError ("evaluated erroreous expression: " + message);
  }

  public void print (java.io.PrintWriter ps)
  {
    ps.print ("(%error ");
    ps.print (message);
    ps.print (")");
  }

  public void compile (Compilation comp, Target target)
  {
    // Should never happen!
  }
}

@@ -42,25 +42,25 @@
 mark an erro
-r
+n
 eous express
@@ -404,17 +404,17 @@
 ted erro
-r
+n
 eous exp

Fix typo "erroreous" -> "erroneous" (twice)s.