Skip to content
Browse files

Refactored package and artifact name to something I control (in other…

… words, I'm giving up my attempt to reason with the university)
  • Loading branch information...
1 parent 5f40abc commit 2c30ffed7951fc2cac8676c6aee76833067dcd3a @djspiewak committed Mar 6, 2012
Showing with 44 additions and 44 deletions.
  1. +2 −2 build.sbt
  2. +1 −1 examples/src/Example.scala
  3. +1 −1 examples/src/arithmetic/ArithmeticParser.scala
  4. +1 −1 examples/src/config/ConfigParser.scala
  5. +1 −1 examples/src/lambdacalc/LambdaCalcParser.scala
  6. +1 −1 examples/src/miniml/MiniMLParser.scala
  7. +1 −1 src/main/scala/{edu/uwm/cs → com/codecommit}/gll/Global.scala
  8. +1 −1 src/main/scala/{edu/uwm/cs → com/codecommit}/gll/LineStream.scala
  9. +2 −2 src/main/scala/{edu/uwm/cs → com/codecommit}/gll/Parsers.scala
  10. +2 −2 src/main/scala/{edu/uwm/cs → com/codecommit}/gll/RegexParsers.scala
  11. +2 −2 src/main/scala/{edu/uwm/cs → com/codecommit}/gll/RegexUtils.scala
  12. +1 −1 src/main/scala/{edu/uwm/cs → com/codecommit}/gll/ast/Filter.scala
  13. +2 −2 src/main/scala/{edu/uwm/cs → com/codecommit}/gll/ast/Filters.scala
  14. +1 −1 src/main/scala/{edu/uwm/cs → com/codecommit}/gll/ast/nodes.scala
  15. +1 −1 src/main/scala/{edu/uwm/cs → com/codecommit}/gll/result.scala
  16. +1 −1 src/main/scala/{edu/uwm/cs → com/codecommit}/gll/tilde.scala
  17. +1 −1 src/main/scala/{edu/uwm/cs → com/codecommit}/util/ComplementarySet.scala
  18. +3 −3 src/main/scala/{edu/uwm/cs → com/codecommit}/util/HOMap.scala
  19. +2 −2 src/main/scala/{edu/uwm/cs → com/codecommit}/util/SetSyntax.scala
  20. +1 −1 src/main/scala/{edu/uwm/cs → com/codecommit}/util/Thunkable.scala
  21. +2 −2 src/main/scala/{edu/uwm/cs → com/codecommit}/util/package.scala
  22. +1 −1 src/test/scala/ArithmeticSpecs.scala
  23. +2 −2 src/test/scala/CompoundSpecs.scala
  24. +3 −3 src/test/scala/DisjunctionSpecs.scala
  25. +1 −1 src/test/scala/FilterSpecs.scala
  26. +2 −2 src/test/scala/LineStreamSpecs.scala
  27. +1 −1 src/test/scala/RegexSpecs.scala
  28. +1 −1 src/test/scala/RegexUtilsSpecs.scala
  29. +3 −3 src/test/scala/TerminalSpecs.scala
View
4 build.sbt
@@ -1,8 +1,8 @@
name := "gll-combinators"
-organization := "edu.uwm.cs"
+organization := "com.codecommit"
-version := "1.5-SNAPSHOT"
+version := "2.0-SNAPSHOT"
scalaVersion := "2.9.1"
View
2 examples/src/Example.scala
@@ -1,7 +1,7 @@
package common
import scala.io.Source
-import edu.uwm.cs.gll._
+import com.codecommit.gll._
trait Example[A] extends Parsers {
View
2 examples/src/arithmetic/ArithmeticParser.scala
@@ -1,6 +1,6 @@
package arithmetic
-import edu.uwm.cs.gll._
+import com.codecommit.gll._
import AST._
object ArithmeticParser extends common.Example[Expr] with RegexParsers {
View
2 examples/src/config/ConfigParser.scala
@@ -1,7 +1,7 @@
package config
import scala.io.Source
-import edu.uwm.cs.gll._
+import com.codecommit.gll._
/**
* Parses config files according to the Git format (ish). Unlike
View
2 examples/src/lambdacalc/LambdaCalcParser.scala
@@ -3,7 +3,7 @@ package lambdacalc
import scala.io.Source
import scala.collection.mutable
-import edu.uwm.cs.gll._
+import com.codecommit.gll._
import AST._
object LambdaCalcParser extends common.Example[(List[Alias], Expr)] with RegexParsers {
View
2 examples/src/miniml/MiniMLParser.scala
@@ -1,6 +1,6 @@
package miniml
-import edu.uwm.cs.gll._
+import com.codecommit.gll._
object MiniMLParser extends common.Example[Any] with RegexParsers {
View
2 src/main/scala/edu/uwm/cs/gll/Global.scala → ...ain/scala/com/codecommit/gll/Global.scala
@@ -1,4 +1,4 @@
-package edu.uwm.cs.gll
+package com.codecommit.gll
private[gll] object Global {
val debug = false
View
2 ...ain/scala/edu/uwm/cs/gll/LineStream.scala → ...scala/com/codecommit/gll/LineStream.scala
@@ -1,4 +1,4 @@
-package edu.uwm.cs.gll
+package com.codecommit.gll
import java.io.{PrintStream, StringReader, Reader}
View
4 src/main/scala/edu/uwm/cs/gll/Parsers.scala → ...in/scala/com/codecommit/gll/Parsers.scala
@@ -1,9 +1,9 @@
-package edu.uwm.cs.gll
+package com.codecommit.gll
import scala.collection.mutable
import mutable.{Buffer, ListBuffer}
-import edu.uwm.cs.util._
+import com.codecommit.util._
import Global._
View
4 ...n/scala/edu/uwm/cs/gll/RegexParsers.scala → ...ala/com/codecommit/gll/RegexParsers.scala
@@ -1,6 +1,6 @@
-package edu.uwm.cs.gll
+package com.codecommit.gll
-import edu.uwm.cs.util._
+import com.codecommit.util._
import scala.util.matching.Regex
View
4 ...ain/scala/edu/uwm/cs/gll/RegexUtils.scala → ...scala/com/codecommit/gll/RegexUtils.scala
@@ -1,6 +1,6 @@
-package edu.uwm.cs.gll
+package com.codecommit.gll
-import edu.uwm.cs.util._
+import com.codecommit.util._
import scala.util.matching.Regex
View
2 ...ain/scala/edu/uwm/cs/gll/ast/Filter.scala → ...scala/com/codecommit/gll/ast/Filter.scala
@@ -1,4 +1,4 @@
-package edu.uwm.cs.gll.ast
+package com.codecommit.gll.ast
trait Filter[-A] extends (A => Boolean) { self =>
def unary_!(): Filter[A] = new Filter[A] {
View
4 ...in/scala/edu/uwm/cs/gll/ast/Filters.scala → ...cala/com/codecommit/gll/ast/Filters.scala
@@ -1,6 +1,6 @@
-package edu.uwm.cs.gll.ast
+package com.codecommit.gll.ast
-import edu.uwm.cs.gll._
+import com.codecommit.gll._
trait Filters {
def prec(order: Symbol*): Filter[Node] = new PrecedenceFilter(order)
View
2 ...main/scala/edu/uwm/cs/gll/ast/nodes.scala → .../scala/com/codecommit/gll/ast/nodes.scala
@@ -1,4 +1,4 @@
-package edu.uwm.cs.gll.ast
+package com.codecommit.gll.ast
trait Node {
val label: Symbol
View
2 src/main/scala/edu/uwm/cs/gll/result.scala → ...ain/scala/com/codecommit/gll/result.scala
@@ -1,4 +1,4 @@
-package edu.uwm.cs.gll
+package com.codecommit.gll
import scala.util.matching.Regex
View
2 src/main/scala/edu/uwm/cs/gll/tilde.scala → ...main/scala/com/codecommit/gll/tilde.scala
@@ -1,3 +1,3 @@
-package edu.uwm.cs.gll
+package com.codecommit.gll
case class ~[+A, +B](_1: A, _2: B) extends Product2[A, B]
View
2 ...la/edu/uwm/cs/util/ComplementarySet.scala → ...om/codecommit/util/ComplementarySet.scala
@@ -1,4 +1,4 @@
-package edu.uwm.cs.util
+package com.codecommit.util
import collection.{SetLike, GenTraversableOnce}
import collection.generic.CanBuildFrom
View
6 src/main/scala/edu/uwm/cs/util/HOMap.scala → ...ain/scala/com/codecommit/util/HOMap.scala
@@ -1,11 +1,11 @@
-package edu.uwm.cs.util
+package com.codecommit.util
import collection.mutable
/**
* @author Jorge Ortiz
*/
-private[cs] class HOMap[K[_], V[_]] {
+private[codecommit] class HOMap[K[_], V[_]] {
private val underlying: mutable.Map[K[_], V[_]] = mutable.Map.empty
def add[T](key: K[T], value: V[T]) {
@@ -32,7 +32,7 @@ private[cs] class HOMap[K[_], V[_]] {
def contains(key: K[_]) = underlying.contains(key)
}
-private[cs] object HOMap {
+private[codecommit] object HOMap {
def apply[K[_], V[_]](tuples: (K[A], V[A]) forSome { type A } *) = {
val back = new HOMap[K, V]
tuples foreach { case (k, v) => back.add(k, v) }
View
4 ...ain/scala/edu/uwm/cs/util/SetSyntax.scala → ...scala/com/codecommit/util/SetSyntax.scala
@@ -1,6 +1,6 @@
-package edu.uwm.cs.util
+package com.codecommit.util
-private[cs] object SetSyntax {
+private[codecommit] object SetSyntax {
implicit def setSyntax[A](set: Set[A]): RichSet[A] = new RichSet(set)
class RichSet[A](set: Set[A]) {
View
2 ...ain/scala/edu/uwm/cs/util/Thunkable.scala → ...scala/com/codecommit/util/Thunkable.scala
@@ -1,4 +1,4 @@
-package edu.uwm.cs.util
+package com.codecommit.util
trait Thunkable {
protected def thunk[A](field: Symbol) = {
View
4 src/main/scala/edu/uwm/cs/util/package.scala → ...n/scala/com/codecommit/util/package.scala
@@ -1,9 +1,9 @@
-package edu.uwm.cs.util
+package com.codecommit.util
import scala.collection.generic.CanBuildFrom
package object util {
- import edu.uwm.cs.util.ComplementarySet
+ import com.codecommit.util.ComplementarySet
implicit def createComplementarySetCanBuildFrom[A, B]: CanBuildFrom[ComplementarySet[A], B, ComplementarySet[B]] = new CanBuildFrom[ComplementarySet[A], B, ComplementarySet[B]] {
def apply = null
View
2 src/test/scala/ArithmeticSpecs.scala
@@ -1,4 +1,4 @@
-import edu.uwm.cs.gll._
+import com.codecommit.gll._
import org.specs._
import org.scalacheck._
View
4 src/test/scala/CompoundSpecs.scala
@@ -1,5 +1,5 @@
-import edu.uwm.cs.gll._
-import edu.uwm.cs.util._
+import com.codecommit.gll._
+import com.codecommit.util._
import org.specs._
import org.scalacheck._
View
6 src/test/scala/DisjunctionSpecs.scala
@@ -1,4 +1,4 @@
-import edu.uwm.cs.gll._
+import com.codecommit.gll._
import org.specs._
import org.scalacheck._
@@ -60,7 +60,7 @@ object DisjunctionSpecs extends Specification with Parsers with ScalaCheck {
}
"compute FIRST for binary alternatives" in {
- import edu.uwm.cs.util._
+ import com.codecommit.util._
val prop = forAll { (left: String, right: String) =>
val leftFirst = if (left.length == 0) Set[Char]() else Set(left charAt 0)
@@ -193,7 +193,7 @@ object DisjunctionSpecs extends Specification with Parsers with ScalaCheck {
}
"compute FIRST for nary alternatives" in {
- import edu.uwm.cs.util._
+ import com.codecommit.util._
("daniel" | "chris" | "joseph").first mustEqual Set('d', 'c', 'j')
("daniel" | "daniel" | "chris" | "joseph").first mustEqual Set('d', 'c', 'j')
View
2 src/test/scala/FilterSpecs.scala
@@ -1,4 +1,4 @@
-import edu.uwm.cs.gll
+import com.codecommit.gll
import gll._
import gll.ast._
View
4 src/test/scala/LineStreamSpecs.scala
@@ -1,5 +1,5 @@
-import edu.uwm.cs.gll.LazyLineCons
-import edu.uwm.cs.gll.LineStream
+import com.codecommit.gll.LazyLineCons
+import com.codecommit.gll.LineStream
import scala.io.Source
View
2 src/test/scala/RegexSpecs.scala
@@ -1,4 +1,4 @@
-import edu.uwm.cs._
+import com.codecommit._
import gll._
import util._
View
2 src/test/scala/RegexUtilsSpecs.scala
@@ -1,4 +1,4 @@
-import edu.uwm.cs._
+import com.codecommit._
import gll._
import util._
View
6 src/test/scala/TerminalSpecs.scala
@@ -1,4 +1,4 @@
-import edu.uwm.cs.gll._
+import com.codecommit.gll._
import org.specs._
import org.scalacheck._
@@ -86,7 +86,7 @@ object TerminalSpecs extends Specification with ScalaCheck with Parsers {
}
"compute FIRST set" in {
- import edu.uwm.cs.util.UniversalCharSet
+ import com.codecommit.util.UniversalCharSet
val prop = forAll { s: String =>
if (s.length == 0)
@@ -197,7 +197,7 @@ object TerminalSpecs extends Specification with ScalaCheck with Parsers {
}
"compute FIRST set" in {
- import edu.uwm.cs.util.UniversalCharSet
+ import com.codecommit.util.UniversalCharSet
val prop = forAll { strs: List[String] =>
(strs.length > 0 && (strs exists { _.length > 0 })) ==> {

0 comments on commit 2c30ffe

Please sign in to comment.
Something went wrong with that request. Please try again.