Relevant Source Files

From Gallium

Jump to: navigation, search

Until this wiki provides the full documentation of Camlp4 it makes still sense to look at the sources. So this page lists the most relevant files of the OCaml sources with convenient links to the online CVS.

Contents

Camlp4/Sig.ml

This file contains most of the relevant signatures. The corresponding implementations can be found in Camlp4/Struct/.

Camlp4/Camlp4Ast.partial.ml

The comments contain helpful hints on grammar and parsing. Used in Camlp4/Struct/Camlp4Ast.mlast.

Camlp4/PreCast.mli

Note that PreCast.Ast actually implements Camlp4.Sig.Camlp4Ast and not Camlp4.Sig.Ast

Camlp4/Struct/Camlp4Ast.mlast

Implementation of Sig.Camlp4Ast which also provides many helpful utility functions for manipulating ASTs.

This file has the .mlast extension since it is specially preprocessed in order to generate map/fold/meta feature from the type declaration in Camlp4Ast.partial.ml.

Camlp4Parsers/Camlp4OCamlRevisedParser.ml

Needs to be loaded before Camlp4Parsers/Camlp4OCamlParser.ml, which is defined as changes to Camlp4OCamlRevisedParser.ml.

Personal tools
Espace privé