This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ( |