diff options
author | NAME <USER@epfl.ch> | 2004-01-30 13:07:45 +0000 |
---|---|---|
committer | NAME <USER@epfl.ch> | 2004-01-30 13:07:45 +0000 |
commit | bec9884b00d60a79671e51a5a65b1717f753f981 (patch) | |
tree | 0a8d4bfa78fbe173ddaf6a8fa8f1e34902f8ee84 /sources/scalac/transformer | |
parent | 0bc48e99d91c250590e6ec1ed376aec348df5cb4 (diff) | |
download | scala-bec9884b00d60a79671e51a5a65b1717f753f981.tar.gz scala-bec9884b00d60a79671e51a5a65b1717f753f981.tar.bz2 scala-bec9884b00d60a79671e51a5a65b1717f753f981.zip |
Added intermediate code and corresponding jvm b...
Added intermediate code and corresponding jvm backend
Diffstat (limited to 'sources/scalac/transformer')
-rw-r--r-- | sources/scalac/transformer/ICodePhase.java | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/sources/scalac/transformer/ICodePhase.java b/sources/scalac/transformer/ICodePhase.java new file mode 100644 index 0000000000..5ed3212da1 --- /dev/null +++ b/sources/scalac/transformer/ICodePhase.java @@ -0,0 +1,59 @@ +/* ____ ____ ____ ____ ______ *\ +** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala ** +** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL ** +** /_____/\____/\___/\____/____/ ** +\* */ + +// $Id: + +package scalac.transformer; + +import scalac.Global; +import scalac.Phase; +import scalac.PhaseDescriptor; +import scalac.Unit; +import scalac.checkers.TreeChecker; +import scalac.symtab.Definitions; + +import ch.epfl.lamp.util.CodePrinter; +import scalac.atree.ATreePrinter; + + +/** + * This class represents the ICode phase for the java version + * of the compiler. It doesn't do anything but permit to make + * a bridge between the java implementation of Socos et the + * scala one. See scala.tools.scalac.icode.ICodePhase for + * implementation + */ +public class ICodePhase extends Phase { + + //######################################################################## + // Private Fields + + private final Definitions definitions; + + //######################################################################## + // Public Constructors + + /** Initializes this instance. */ + public ICodePhase(Global global, PhaseDescriptor descriptor) { + super(global, descriptor); + this.definitions = global.definitions; + } + + //######################################################################## + // Public Methods + + /** Applies this phase to the given compilation units. */ + public void apply(Unit[] units) { + // This java version doesn't make anything + } + + public ATreePrinter getPrinter(CodePrinter cp) { + return new ATreePrinter(cp); + // !! Useless + } + +} + |