Skip to content

Commit

Permalink
Bootstrap Scala project with LISA dependency as a git submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianCassayre committed Feb 21, 2022
1 parent 8859b72 commit fa63a0c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lisa"]
path = lisa
url = [email protected]:epfl-lara/lisa.git
8 changes: 8 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name := "master-project"

version := "0.1"

scalaVersion := "2.13.8"

lazy val lisa = RootProject(file("lisa"))
lazy val root = (project in file(".")).dependsOn(lisa)
1 change: 1 addition & 0 deletions lisa
Submodule lisa added at 9a3a4a
1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version = 1.6.2
12 changes: 12 additions & 0 deletions src/main/scala/Main.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import lisa.kernel.Printer
import lisa.kernel.fol.FOL._
import lisa.KernelHelpers._

object Main extends App {

val (la, lb) = (ConstantPredicateLabel("a", 0), ConstantPredicateLabel("b", 0))
val (a, b) = (PredicateFormula(la, Seq.empty), PredicateFormula(lb, Seq.empty))

println(Printer.prettyFormula((a \/ b) /\ a))

}

0 comments on commit fa63a0c

Please sign in to comment.