Skip to content

Instantly share code, notes, and snippets.

/**
* Created by Hugo Sereno Ferreira on 15/06/14.
*/
import org.scalajs.dom
import scala.collection._
import Page.renderer
sealed trait Opcode
object Mov extends Opcode { override def toString = "MOV" }
object ScalaJSExample extends js.JSApp {
type Coord = Pair[Int, Int]
type CoordSet = Set[Coord]
def handleString(str: String, identity:Boolean=false): String = {
val lines=str.stripMargin.trim.split("\n")
val coords: CoordSet = for (