Initial project setup

This commit is contained in:
Eike Kettner
2021-02-21 12:04:48 +01:00
parent 8725487cc0
commit 74a79a79d9
5 changed files with 52 additions and 2 deletions

View File

@ -0,0 +1,3 @@
package docspell.query
case class Query(raw: String)

View File

@ -0,0 +1,13 @@
package docspell.query
import scala.scalajs.js.annotation._
@JSExportTopLevel("DsQueryParser")
object QueryParser {
@JSExport
def parse(input: String): Either[String, Query] = {
Right(Query("parsed: " + input))
}
}