ipso icon indicating copy to clipboard operation
ipso copied to clipboard

Markdown REPL sessions

Open LightAndLight opened this issue 4 years ago • 0 comments

Depends on #170.


```ipso-repl
> 1 + 1
2
```

```ipso-repl
> if 2 == 3
. then "yes"
. else "no"
"no"
```

Write a program that can:

  • [ ] Extract ipso-repl code blocks from a markdown file
  • [ ] Parse and evaluate the code blocks
  • [ ] If an output is present in the code block, compare it to the computed output

Hints

  • pulldown-cmark is the most popular markdown parser on crates.io
  • I might want to separate code block parsing into two stages: one to join the input into a single line, and one to parse the full line
    • But how would I report errors properly, then?

LightAndLight avatar May 26 '21 04:05 LightAndLight