Reformat ASCII proof trees in your code/docs
Find a file
2025-02-06 23:32:45 +01:00
.idea/codeStyles Create project 2024-09-04 19:03:00 +02:00
project Build uberjar using sbt-assembly 2024-09-04 19:45:49 +02:00
src/main/scala/de/plugh/asciiprooftree Use regex to detect blocks 2025-02-06 23:32:45 +01:00
.gitignore Create project 2024-09-04 19:03:00 +02:00
.scalafmt.conf Create project 2024-09-04 19:03:00 +02:00
build.sbt Build uberjar using sbt-assembly 2024-09-04 19:45:49 +02:00
README.md Use regex to detect blocks 2025-02-06 23:32:45 +01:00

asciiprooftree

Format and reformat ascii proof trees like this one:

§                                                   *
§                                     ----------------------------- [;] 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

To reformat all proof trees in your project, run:

java -jar asciiprooftree.jar path/to/your/src

For available options, run:

java -jar asciiprooftree.jar --help