A modified OCaml compiler for eliom programs
OCaml C Makefile Emacs Lisp Standard ML Assembly Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
asmcomp
asmrun
boot
bytecomp
byterun
compilerlibs
config
debugger
driver
emacs
experimental
flexdll @ c041e8b
lex
man
manual
middle_end
ocamldoc
otherlibs
parsing
stdlib whitespace and long lines Apr 19, 2016
testsuite
tools
toplevel
typing
utils
yacc
.depend
.gitattributes
.gitignore
.gitmodules
.merlin
.ocp-indent
.travis-ci.sh
.travis.yml
CONTRIBUTING.md
Changes
INSTALL.adoc
LICENSE
Makefile
Makefile.nt
Makefile.shared
README.md
README.orig.adoc
README.win32.adoc
VERSION
appveyor.yml
appveyor_build.sh
configure

README.md

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. *)