Create project

This commit is contained in:
Joscha 2024-09-04 15:53:15 +02:00
commit 09ee1bc74c
8 changed files with 79 additions and 0 deletions

8
.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
# sbt
/.bsp/
target/
# IntelliJ IDEA
/.idea/*
!/.idea/codeStyles/
!/.idea/codeStyles/*

10
.idea/codeStyles/Project.xml generated Normal file
View file

@ -0,0 +1,10 @@
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<ScalaCodeStyleSettings>
<option name="classCountToUseImportOnDemand" value="9999" />
<option name="SCALAFMT_REFORMAT_ON_FILES_SAVE" value="true" />
<option name="FORMATTER" value="1" />
<option name="MULTILINE_STRING_CLOSING_QUOTES_ON_NEW_LINE" value="true" />
</ScalaCodeStyleSettings>
</code_scheme>
</component>

5
.idea/codeStyles/codeStyleConfig.xml generated Normal file
View file

@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
</state>
</component>

27
.scalafmt.conf Normal file
View file

@ -0,0 +1,27 @@
# Scaladoc configuration docs:
# https://scalameta.org/scalafmt/docs/configuration.html
# https://github.com/scalameta/scalafmt/releases
version = 3.8.3
runner.dialect = scala3
maxColumn = 120
# Alignment
align.preset = none
align.stripMargin = true
assumeStandardLibraryStripMargin = true
# Newlines
newlines.source = fold
newlines.selectChains = unfold
newlines.ignoreInSyntax = false
# Rewrite rules
rewrite.rules = [Imports]
rewrite.imports.sort = original
rewrite.trailingCommas.style = multiple
# Comment processing
docstrings.style = Asterisk
docstrings.oneline = fold
docstrings.wrap = fold

13
README.md Normal file
View file

@ -0,0 +1,13 @@
# asciiprooftree
Format and reformat ascii proof trees like this one:
```text
§ *
§ ----------------------------- [;] compose
§ [a;b;]p(||) <-> [a;][b;]p(||)
§ ----------------------------------------- US
§ [x:=*;][?x>0;][x:=x+1;]x>1 [?x>0;x:=x+1;]x>1 <-> [?x>0;][x:=x+1;]x>1
§ ---------------------------------------------------------------------- RewriteAt
§ [x:=*;][?x>0;x:=x+1;]x>1
```

9
build.sbt Normal file
View file

@ -0,0 +1,9 @@
val scala3Version = "3.5.0"
lazy val root = project
.in(file("."))
.settings(
name := "asciiprooftree",
version := "0.0.0",
scalaVersion := scala3Version,
)

1
project/build.properties Normal file
View file

@ -0,0 +1 @@
sbt.version=1.10.1

View file

@ -0,0 +1,6 @@
@main
def hello(): Unit =
println("Hello world!")
println(msg)
def msg = "I was compiled by Scala 3. :)"