man-pages/man3/Longident.3o.html
2021-03-31 01:06:50 +01:00

126 lines
1.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of Longident</TITLE>
</HEAD><BODY>
<H1>Longident</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">&nbsp;</A>
<H2>NAME</H2>
Longident - Long identifiers, used in parsetree.
<A NAME="lbAC">&nbsp;</A>
<H2>Module</H2>
Module Longident
<A NAME="lbAD">&nbsp;</A>
<H2>Documentation</H2>
<P>
Module
<B>Longident</B>
<BR>&nbsp;:&nbsp;
<B>sig end</B>
<P>
<P>
Long identifiers, used in parsetree.
<P>
Warning: this module is unstable and part of
<B>Compiler_libs</B>
.
<P>
<P>
<P>
<P>
<P>
<I>type t </I>
=
<BR>&nbsp;|&nbsp;Lident
<B>of </B>
<B>string</B>
<BR>&nbsp;|&nbsp;Ldot
<B>of </B>
<B>t * string</B>
<BR>&nbsp;|&nbsp;Lapply
<B>of </B>
<B>t * t</B>
<BR>&nbsp;
<P>
<P>
<P>
<P>
<I>val flatten </I>
:
<B>t -&gt; string list</B>
<P>
<P>
<P>
<P>
<I>val unflatten </I>
:
<B>string list -&gt; t option</B>
<P>
<P>
<P>
<P>
<I>val last </I>
:
<B>t -&gt; string</B>
<P>
<P>
<P>
<P>
<I>val parse </I>
:
<B>string -&gt; t</B>
<P>
<P>
<P>
<P>
<P>
To print a longident, see
<B>Pprintast.longident</B>
, using
<B>Format.asprintf</B>
to convert to a string.
<P>
<P>
<HR>
<A NAME="index">&nbsp;</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>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:47 GMT, March 31, 2021
</BODY>
</HTML>