Tying the Knot with a State monad

后端 未结 5 1895
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 16:42

I\'m working on a Haskell project that involves tying a big knot: I\'m parsing a serialized representation of a graph, where each node is at some offset into the file, and may r

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-30 17:40

    I wrote up an article on this topic at entitled Assembly: Circular Programming with Recursive do where I describe two methods for building an assembler using knot tying. Like your problem, an assembler has to be able to resolve address of labels that may occur later in the file.

提交回复
热议问题