TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A micro compiler in Ocaml

63 点作者 joaobatalha大约 11 年前

5 条评论

amirmc大约 11 年前
As well as Real World OCaml (linked in the OP), there are also a number of tutorials&#x2F;exercises at <a href="http://ocaml.org/learn/tutorials/" rel="nofollow">http:&#x2F;&#x2F;ocaml.org&#x2F;learn&#x2F;tutorials&#x2F;</a><p>The most visited of these pages is 99 problems: <a href="http://ocaml.org/learn/tutorials/99problems.html" rel="nofollow">http:&#x2F;&#x2F;ocaml.org&#x2F;learn&#x2F;tutorials&#x2F;99problems.html</a>
gsg大约 11 年前
&quot;Our program will preallocate 1000 bytes on stack for variables, since all of our variables are static.&quot;<p>Oof, talk about cutting corners. Works well enough until you need function calls, I guess.<p>Anybody who finds this intriguing might look at <a href="http://esumii.github.io/min-caml/index-e.html" rel="nofollow">http:&#x2F;&#x2F;esumii.github.io&#x2F;min-caml&#x2F;index-e.html</a>, which is also written in OCaml and goes into a bit more depth.
toolslive大约 11 年前
I don&#x27;t know what the purpose is here, but I think it would be a lot smaller if the standard tools for lexing and parsing were used. <a href="http://caml.inria.fr/pub/docs/manual-ocaml-400/manual026.html" rel="nofollow">http:&#x2F;&#x2F;caml.inria.fr&#x2F;pub&#x2F;docs&#x2F;manual-ocaml-400&#x2F;manual026.htm...</a>
评论 #7506703 未加载
评论 #7506608 未加载
评论 #7520764 未加载
评论 #7506496 未加载
vrotaru大约 11 年前
And more mini-languages which are implemented in Ocaml, here:<p><a href="https://github.com/andrejbauer/plzoo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;andrejbauer&#x2F;plzoo</a>
gtani大约 11 年前
this reminds me of a neglected bookmark, the original rust compiler in ocaml from 3 years ago <a href="http://www.reddit.com/r/rust/comments/18b808/is_the_original_ocaml_compiler_still_available/" rel="nofollow">http:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;rust&#x2F;comments&#x2F;18b808&#x2F;is_the_original...</a>