summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2004-07-15 13:54:51 +0000
committerburaq <buraq@epfl.ch>2004-07-15 13:54:51 +0000
commit514b9f68e1e0338798828b308e5fcbc1d0c2c9ee (patch)
tree70673e17fc8da21138c58c86f382218e67acfe77 /sources
parent0adfa22f7022d6a67757f790d01ef4b3f603db40 (diff)
downloadscala-514b9f68e1e0338798828b308e5fcbc1d0c2c9ee.tar.gz
scala-514b9f68e1e0338798828b308e5fcbc1d0c2c9ee.tar.bz2
scala-514b9f68e1e0338798828b308e5fcbc1d0c2c9ee.zip
mathcing
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/tools/scalac/transformer/matching/MutableGrammar.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/sources/scala/tools/scalac/transformer/matching/MutableGrammar.scala b/sources/scala/tools/scalac/transformer/matching/MutableGrammar.scala
index 145914d281..65abc34bdf 100644
--- a/sources/scala/tools/scalac/transformer/matching/MutableGrammar.scala
+++ b/sources/scala/tools/scalac/transformer/matching/MutableGrammar.scala
@@ -4,8 +4,7 @@ import scala.collection.mutable;
import scala.runtime.matching._;
import scalac.symtab._;
-import scala.util.alphabet.{ IntLabel, IntAlphabet };
-import scala.util.grammar.{ AnyTreeRHS, LabelledTreeRHS, TreeRHS, ConsRHS, HedgeRHS };
+import scala.util.grammar.{ AnyTreeRHS, LabelledRHS, TreeRHS, ConsRHS, HedgeRHS };
package scala.tools.scalac.transformer.matching {
@@ -97,7 +96,7 @@ case class MutableGrammar( treeRules:mutable.Set[TRule],
treeRules.foreach { treeRule => treeRule match {
case AnyTreeRule( t ) => tmp = add( t.i, AnyTreeRHS, tmp );
//case AnyNodeRule( t, _ ) => tmp = add( t.i, treeRule, tmp ) // ??!!!!!!!!!!!!!!!!!!!!!!
- case TreeRule( t, i, h ) => tmp = add( t.i, LabelledTreeRHS(IntLabel(i),h.i), tmp )
+ case TreeRule( t, i, h ) => tmp = add( t.i, LabelledRHS(TestLabel(i),h.i), tmp )
}};
tmp
};