ocsigen / ocaml-eliom

A modified OCaml compiler for eliom programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Eliom compiler

This is an extension of the OCaml compiler to typecheck Eliom programs. This is WIP.

On .ml programs, the behavior is the same as the normal compiler.

In eliom programs, several extensions are available which are quickly explained here: http://ocsigen.org/eliom/5.0/manual/ppx-syntax

let%server x = 3 (* declaration on the server *)

let%client y = 4 (* declaration on the client *)

let%server z : int fragment = [%client ~%y + 1 ]
(* piece of client code that is manipulated on the server *)

let%client a =
  ~%x (* Injections from the server *)
  + ~%z (* Injections from a fragment. *)

About

A modified OCaml compiler for eliom programs

License:Other


Languages

Language:OCaml 76.6%Language:C 15.2%Language:Makefile 2.3%Language:Emacs Lisp 1.9%Language:Standard ML 1.6%Language:Assembly 1.5%Language:TeX 0.4%Language:Shell 0.2%Language:Perl 0.1%Language:C++ 0.1%Language:Awk 0.1%Language:CSS 0.0%Language:Forth 0.0%Language:C# 0.0%