17:10
@user Yeah, it is a little bit. Like I planned to earlier, I'm using separate branches for the JVM and Scala.js versions, with two different build.sbt files and two somewhat different Main.scala files. Here's my JS build.sbt:
enablePlugins(ScalaJSPlugin) name := "Half-Byte Lisp" val hblVersion = "0.1.2" version := hblVersion scalaVersion := "3.0.2" Global / onChangedBuildSource := ReloadOnSourceChanges
which is basically the same as the JVM build.sbt but with the ScalaJSPlugin line added and the unit test & JAR configuration removed.
@JSExportTopLevel("runHBL") def run(code: String, formatSpecifier: String, args: Array[String], debug: Boolean): Unit = { val format = formatSpecifier match { case "raw" => FileFormat.Raw case "hbl" => FileFormat.ASCII case "thimble" => FileFormat.Thimble case _ => FileFormat.ASCII } run(code, format, args, debug) }
« first day (396 days earlier) ← previous day next day → last day (882 days later) »