Commit graph

5 commits

Author SHA1 Message Date
Simon Cruanes
c2e5f31645
change signature of Const.decoders; add bencode decoder 2022-09-25 23:05:15 -04:00
Simon Cruanes
9ea8ba9bd1
feat: implement some const decoders 2022-09-25 23:05:15 -04:00
Simon Cruanes
7b4404fb78
feat(tracing): introduce term/const serialization
- use a record instead of 1st class module for `Const.ops`, so it
  can be mutually recursive with the definition of `term`
- remove unused `Const.ops.opaque_to_cc`
- constants are serializable using `Ser_value`
2022-09-23 22:13:21 -04:00
Simon Cruanes
c9138144f3
refactor(preprocess): break infinite recursion 2022-09-08 21:55:09 -04:00
Simon Cruanes
6101e029b3
feat(core): add box, with a box constant
this is a good alternative to gensym for preprocessing, as it is
idempotent and functional.
2022-09-07 19:34:31 -04:00