diff options
| author | Jack | 2016-02-02 11:49:38 -0800 |
|---|---|---|
| committer | azidar | 2016-02-09 18:57:06 -0800 |
| commit | b2d9eacd26e8283f438bc6429770497290d5b9c3 (patch) | |
| tree | 4eff98b858a049bc533a6fcaf10888a331c6e773 /src/main/scala/firrtl/PrimOps.scala | |
| parent | 43ecab5aec6751d05ac986570e0648bb3d90982a (diff) | |
Adding ScalaTest for unit testing of Scala FIRRTL. Added a few basic tests for the Parser. Added custom Parser exceptions for better error reporting and checking. Fixed bug in grammar not allowing most keywords as Ids
Diffstat (limited to 'src/main/scala/firrtl/PrimOps.scala')
| -rw-r--r-- | src/main/scala/firrtl/PrimOps.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/scala/firrtl/PrimOps.scala b/src/main/scala/firrtl/PrimOps.scala index 56d1053c..790fa538 100644 --- a/src/main/scala/firrtl/PrimOps.scala +++ b/src/main/scala/firrtl/PrimOps.scala @@ -42,6 +42,7 @@ object PrimOps extends LazyLogging { HEAD_OP -> "head", TAIL_OP -> "tail" ) + lazy val listing: Seq[String] = PrimOps.mapPrimOp2String.map { case (k,v) => v } toSeq private val mapString2PrimOp = mapPrimOp2String.map(_.swap) def fromString(op: String): PrimOp = mapString2PrimOp(op) |
