Commit Graph

12 Commits

Author SHA1 Message Date
Greg Pfeil
0031542faf
Add a space before code block info strings
This is for consistency with the `cmark` style. Now the blocks we still
pretty-print ourselves will match the bulk of them that `cmark`
produces.
2024-07-10 13:56:07 -06:00
Chris Penner
5ca1eb3b8d Replace '.' references with scratch/main 2024-06-25 11:11:07 -07:00
Paul Chiusano
7509e3efa1 refresh transcripts 2023-07-21 02:12:22 -04:00
Rúnar
d9cdf6b40b Fix roundtrip error with block lambdas 2023-03-03 21:03:40 -05:00
Dan Doel
8e6b907d01 Use original term for decompiling a top-level PAp
The new top-level floating seemed like it could cause some uninformative
decompilations if the result of floating was stored. Previously it would
have been a letrec, but now it is just the body of said letrec, and the
bound definitions have been given their own references, with no obvious
way to inspect them. So, just using the original term seems like a
better idea.

Any top-level signature is stripped off, to be slightly less verbose.
2022-08-04 17:15:12 -04:00
Dan Doel
9fc61ff292 Avoid redundant floating due to signatures
Due to a missing case in the floating logic, definitions like:

    f : ...
    f x y z = ...

were being turned into:

    f : ...
    f =
      g x y z = ...
      g

Because the compiler thought the lambda needed to be floated out of the
signature ascription, as the original `f` is the same as:

    f = (x y z -> ...) : ...

This is obviously not necessary, as the signature will be erased anyway,
and just results in extra indirection.
2022-03-21 13:29:37 -04:00
Arya Irani
19daa28398 Merge branch 'trunk' into topic/merge-trunk-2022-02-07 2022-02-07 19:29:57 -07:00
Mitchell Rosen
f430921b12 ⅄ trunk → topic/rehash-codebase 2022-01-24 12:43:11 -05:00
Dan Doel
ae9a7c80be Modify remembered code for improved decompiling
- This commit shuffles the order of how interactive evaluataion happens
  to attempt to get decompiler output that is closer to the original
  source.
- It only does floating before remembering the combinators, so output
  shouldn't have compiled patterns and the like anymore.
- I was hoping that this might preserve some type annotations in
  embedded docs, but it appears to not be the case.
2022-01-12 11:31:56 -05:00
Arya Irani
52b2c81783 never assume builtins are known to the db
fixes 107 failing transcripts
2021-12-06 11:55:21 -10:00
Arya Irani
31f9f56b30 update transcript output 2021-09-27 17:25:23 -04:00
Arya Irani
4f34ed25b0 fix #2053 by using Var.rawName to produce text for synthetic vars 2021-06-19 11:40:02 -06:00