About the pattern matching algorithm in OCaml

后端 未结 1 1019
梦如初夏
梦如初夏 2021-02-09 21:46

I am writing a compiler for a functional language I designed with OCaml. I want my little language to have the feature of pattern matching, however, I got stuck in coming up wit

1条回答
  •  不思量自难忘°
    2021-02-09 22:16

    There's a few good papers on compiling pattern matching by some of the people behind OCaml. In particular see Compiling Pattern Matching to Good Decision Trees and Optimizing Pattern Matching. It might also be useful to go over this stackoverflow post.

    0 讨论(0)
提交回复
热议问题