Tweak output
This commit is contained in:
parent
448138b826
commit
7ab8e0d6f4
2 changed files with 8 additions and 8 deletions
14
README.md
14
README.md
|
|
@ -3,11 +3,11 @@
|
|||
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
|
||||
§ *
|
||||
§ ----------------------------- [;] 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
|
||||
```
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ case class Block(lines: Seq[(String, String)]):
|
|||
|
||||
def last: (String, String) = lines.last
|
||||
def content: Seq[String] = lines.map((_, content) => content)
|
||||
def toLines: Seq[String] = lines.map((prefix, content) => s"$prefix $content")
|
||||
def toLines: Seq[String] = lines.map((prefix, content) => s"$prefix $content")
|
||||
|
||||
def extend(prefix: String, content: String): Block = Block(lines :+ (prefix, content))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue