Commits

Brian McKenna committed 4fae3d0

Change to sealed trait and format

  • Participants
  • Parent commits 92ba902

Comments (0)

Files changed (1)

File src/main/scala/Main.scala

 
 import org.objectweb.asm.Opcodes._
 
-trait Node
+sealed trait Node
 case class SExp(l: List[Node]) extends Node
 case class SInt(i: Int) extends Node
 case class SIdent(s: String) extends Node
   def compile(b: CodeBlock, n: Node) {
     n match {
       case SExp(Nil) => {}
-      case SExp(x::xs) => {
+      case SExp(x :: xs) => {
         xs.foreach(compile(b, _))
         compile(b, x)
       }