436 lines
4.2 KiB
HTML
436 lines
4.2 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of Ast_helper</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>Ast_helper</H1>
|
|
Section: OCaml library (3o)<BR>Updated: 2020-01-30<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
Ast_helper - Helpers to produce Parsetree fragments
|
|
<A NAME="lbAC"> </A>
|
|
<H2>Module</H2>
|
|
|
|
Module Ast_helper
|
|
<A NAME="lbAD"> </A>
|
|
<H2>Documentation</H2>
|
|
|
|
<P>
|
|
Module
|
|
<B>Ast_helper</B>
|
|
|
|
<BR> :
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Helpers to produce Parsetree fragments
|
|
<P>
|
|
Warning This module is unstable and part of
|
|
<B>Compiler_libs</B>
|
|
|
|
.
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>type </I>
|
|
|
|
<B>'a</B>
|
|
|
|
<I>with_loc </I>
|
|
|
|
=
|
|
<B>'a Location.loc</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>type loc </I>
|
|
|
|
=
|
|
<B>Location.t</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>type lid </I>
|
|
|
|
=
|
|
<B>Longident.t with_loc</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>type str </I>
|
|
|
|
=
|
|
<B>string with_loc</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>type attrs </I>
|
|
|
|
=
|
|
<B>Parsetree.attribute list</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H3>Default locations</H3>
|
|
|
|
<P>
|
|
<P>
|
|
|
|
<P>
|
|
<I>val default_loc </I>
|
|
|
|
:
|
|
<B>loc ref</B>
|
|
|
|
<P>
|
|
Default value for all optional location arguments.
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val with_default_loc </I>
|
|
|
|
:
|
|
<B>loc -> (unit -> 'a) -> 'a</B>
|
|
|
|
<P>
|
|
Set the
|
|
<B>default_loc</B>
|
|
|
|
within the scope of the execution
|
|
of the provided function.
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H3>Constants</H3>
|
|
|
|
<P>
|
|
<P>
|
|
|
|
<I>module Const : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>module Attr : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
<A NAME="lbAG"> </A>
|
|
<H3>Attributes</H3>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H3>Core language</H3>
|
|
|
|
<P>
|
|
<P>
|
|
|
|
<I>module Typ : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Type expressions
|
|
<P>
|
|
<P>
|
|
<I>module Pat : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Patterns
|
|
<P>
|
|
<P>
|
|
<I>module Exp : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Expressions
|
|
<P>
|
|
<P>
|
|
<I>module Val : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Value declarations
|
|
<P>
|
|
<P>
|
|
<I>module Type : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Type declarations
|
|
<P>
|
|
<P>
|
|
<I>module Te : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Type extensions
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H3>Module language</H3>
|
|
|
|
<P>
|
|
<P>
|
|
|
|
<I>module Mty : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Module type expressions
|
|
<P>
|
|
<P>
|
|
<I>module Mod : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Module expressions
|
|
<P>
|
|
<P>
|
|
<I>module Sig : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Signature items
|
|
<P>
|
|
<P>
|
|
<I>module Str : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Structure items
|
|
<P>
|
|
<P>
|
|
<I>module Md : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Module declarations
|
|
<P>
|
|
<P>
|
|
<I>module Ms : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Module substitutions
|
|
<P>
|
|
<P>
|
|
<I>module Mtd : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Module type declarations
|
|
<P>
|
|
<P>
|
|
<I>module Mb : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Module bindings
|
|
<P>
|
|
<P>
|
|
<I>module Opn : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Opens
|
|
<P>
|
|
<P>
|
|
<I>module Incl : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Includes
|
|
<P>
|
|
<P>
|
|
<I>module Vb : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Value bindings
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H3>Class language</H3>
|
|
|
|
<P>
|
|
<P>
|
|
|
|
<I>module Cty : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Class type expressions
|
|
<P>
|
|
<P>
|
|
<I>module Ctf : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Class type fields
|
|
<P>
|
|
<P>
|
|
<I>module Cl : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Class expressions
|
|
<P>
|
|
<P>
|
|
<I>module Cf : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Class fields
|
|
<P>
|
|
<P>
|
|
<I>module Ci : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Classes
|
|
<P>
|
|
<P>
|
|
<I>module Csig : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Class signatures
|
|
<P>
|
|
<P>
|
|
<I>module Cstr : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Class structures
|
|
<P>
|
|
<P>
|
|
<I>module Rf : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Row fields
|
|
<P>
|
|
<P>
|
|
<I>module Of : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Object fields
|
|
<P>
|
|
<P>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">Module</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">Documentation</A><DD>
|
|
<DL>
|
|
<DT id="4"><A HREF="#lbAE">Default locations</A><DD>
|
|
<DT id="5"><A HREF="#lbAF">Constants</A><DD>
|
|
<DT id="6"><A HREF="#lbAG">Attributes</A><DD>
|
|
<DT id="7"><A HREF="#lbAH">Core language</A><DD>
|
|
<DT id="8"><A HREF="#lbAI">Module language</A><DD>
|
|
<DT id="9"><A HREF="#lbAJ">Class language</A><DD>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:35 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|