public static void translateAllUnits() {
    { TranslationUnit unit = null;
      Cons iter000 = ((List)(Stella.$TRANSLATIONUNITS$.get())).theConsList;

      for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
        unit = ((TranslationUnit)(iter000.value));
        { Object old$Currenttranslationunit$000 = Stella.$CURRENTTRANSLATIONUNIT$.get();

          try {
            Native.setSpecial(Stella.$CURRENTTRANSLATIONUNIT$, unit);
            if ((((Integer)(Stella.$TRANSLATIONVERBOSITYLEVEL$.get())).intValue() >= 2) &&
                (unit.annotation != null)) {
              System.out.println("Translating `" + unit.annotation + "'");
            }
            if (((Keyword)(Stella.$TRANSLATOROUTPUTLANGUAGE$.get())) == Stella.KWD_COMMON_LISP) {
              unit.translation = TranslationUnit.clTranslateUnit(unit);
            }
            else if (((Keyword)(Stella.$TRANSLATOROUTPUTLANGUAGE$.get())) == Stella.KWD_IDL) {
              unit.translation = TranslationUnit.idlTranslateUnit(unit);
            }
            else if ((((Keyword)(Stella.$TRANSLATOROUTPUTLANGUAGE$.get())) == Stella.KWD_JAVA) ||
                (((Keyword)(Stella.$TRANSLATOROUTPUTLANGUAGE$.get())) == Stella.KWD_JAVA_STANDALONE)) {
              if (unit.translation == null) {
                unit.translation = TranslationUnit.javaTranslateUnit(unit);
              }
            }
            else if ((((Keyword)(Stella.$TRANSLATOROUTPUTLANGUAGE$.get())) == Stella.KWD_CPP) ||
                (((Keyword)(Stella.$TRANSLATOROUTPUTLANGUAGE$.get())) == Stella.KWD_CPP_STANDALONE)) {
              unit.translation = TranslationUnit.cppTranslateUnit(unit);
            }
            else {
              { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

                stream000.nativeStream.print("`" + ((Keyword)(Stella.$TRANSLATOROUTPUTLANGUAGE$.get())) + "' is not a valid case option");
                throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
              }
            }

          } finally {
            Stella.$CURRENTTRANSLATIONUNIT$.set(old$Currenttranslationunit$000);
          }
        }
      }
    }
  }