Debian Codegraph @

examples/README

raw
1 The files of this directory are in the public domain.
2
3 Test with:
4 make
5 Clean with:
6 make clean
7
8
9 simple.mlx:
10 minimalist example showing the basic syntax issues
11
12 include1.mlx, include2.mlx:
13 illustration of the "include" directive
14
15 xpp.mlx, prog.mlx:
16 example of simple meta-programming. An OCaml file is produced.
17 The main issue is to report error locations correctly, which is achieved by
18 xpp.mlx.
19
20 test.mlx:
21 a longer test which produces a HTML file (where whitespace is not very
22 significant)
23
24 test2.mlx:
25 another test, produces a C file
26
27 dynamic.mlx, dynamic_main.mlx:
28 compiling a template into a regular OCaml module, and calling the render
29 function from a regular program
30
31 dynamic2.mlx, dynamic2_main.mlx:
32 template with multiple parameters;
33 printing into an explicit buffer instead of stdout.