This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First, we define an AST for this language: type 'loc expr = Var of string * 'loc | String of string * 'loc ;; type 'loc stmt = Def of string * 'loc expr * 'loc | Print of 'loc expr list * 'loc ;; An expression is either a variable reference or a string; a statement is either a variable definition or a print of some expressions. We want to associate a source location with every AST node; however we
Camlp4 was a software system for writing extensible parsers for programming languages. Since August 2019, Camlp4 is no longer actively maintained and the last release to support all OCaml language features was 4.08. Later releases will try to keep camlp4 buildable, by supporting new OCaml AST but not new syntax constructions, which means camlp4 will be able to parse only OCaml language up to 4.08.
An educational compiler for a minimal subset of OCaml, written in ~2000 lines of OCaml. For details, see: http://esumii.github.io/min-caml/ (Japanese Web page) http://esumii.github.io/min-caml/jpaper.pdf (Japanese academic paper) http://esumii.github.io/min-caml/index-e.html (English Web page) http://esumii.github.io/min-caml/paper.pdf (English academic paper) 1. Install OCaml (http://caml.inria.f
README.md Dockerfile for Reason A Docker file for Reason development. Build Ensure that you have docker installed . Build the image: docker build -t reason . All set! Running Reason interactive top-level Start the Reason interactive top-level with: $ docker run -it reason rtop Build native apps Assuming that you have a reason project directory called hello_reason with a single file hello.re : $ ca
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く