summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-12-10 16:59:23 +0000
committerpaltherr <paltherr@epfl.ch>2003-12-10 16:59:23 +0000
commit806aab5f096cbaaefe61e57712af8700c0a7742c (patch)
tree7bd45cda883c911eaba0d250e6283436de659130 /sources
parentb550531ef93986d5a9dbeea711d6604848f94c75 (diff)
downloadscala-806aab5f096cbaaefe61e57712af8700c0a7742c.tar.gz
scala-806aab5f096cbaaefe61e57712af8700c0a7742c.tar.bz2
scala-806aab5f096cbaaefe61e57712af8700c0a7742c.zip
- Added class ATreeFromSTree
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/atree/ATreeFromSTree.java43
1 files changed, 43 insertions, 0 deletions
diff --git a/sources/scalac/atree/ATreeFromSTree.java b/sources/scalac/atree/ATreeFromSTree.java
new file mode 100644
index 0000000000..79a5ac330c
--- /dev/null
+++ b/sources/scalac/atree/ATreeFromSTree.java
@@ -0,0 +1,43 @@
+/* ____ ____ ____ ____ ______ *\
+** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala **
+** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL **
+** /_____/\____/\___/\____/____/ **
+\* */
+
+// $Id$
+
+package scalac.atree;
+
+import scalac.Unit;
+import scalac.symtab.Definitions;
+
+/** This class translates syntax trees into attributed trees. */
+public class ATreeFromSTree {
+
+ //########################################################################
+ // Private Fields
+
+ /** The global definitions */
+ private final Definitions definitions;
+
+ /** The attributed tree factory */
+ private final ATreeFactory make;
+
+ //########################################################################
+ // Public Constructors
+
+ /** Initializes this instance. */
+ public ATreeFromSTree(Definitions definitions) {
+ this.definitions = definitions;
+ this.make = new ATreeFactory();
+ }
+
+ //########################################################################
+ // Public Methods - Translating units
+
+ /** Translates the unit's body and stores the result in it. */
+ public void translate(Unit unit) {
+ }
+
+ //########################################################################
+}