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

211 lines
2.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of Lexer</TITLE>
</HEAD><BODY>
<H1>Lexer</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>
Lexer - The lexical analyzer
<A NAME="lbAC">&nbsp;</A>
<H2>Module</H2>
Module Lexer
<A NAME="lbAD">&nbsp;</A>
<H2>Documentation</H2>
<P>
Module
<B>Lexer</B>
<BR>&nbsp;:&nbsp;
<B>sig end</B>
<P>
<P>
The lexical analyzer
<P>
Warning: this module is unstable and part of
<B>Compiler_libs</B>
.
<P>
<P>
<P>
<P>
<P>
<P>
<I>val init </I>
:
<B>unit -&gt; unit</B>
<P>
<P>
<P>
<P>
<I>val token </I>
:
<B>Lexing.lexbuf -&gt; Parser.token</B>
<P>
<P>
<P>
<P>
<I>val skip_hash_bang </I>
:
<B>Lexing.lexbuf -&gt; unit</B>
<P>
<P>
<P>
<I>type error </I>
=
<BR>&nbsp;|&nbsp;Illegal_character
<B>of </B>
<B>char</B>
<BR>&nbsp;|&nbsp;Illegal_escape
<B>of </B>
<B>string * string option</B>
<BR>&nbsp;|&nbsp;Reserved_sequence
<B>of </B>
<B>string * string option</B>
<BR>&nbsp;|&nbsp;Unterminated_comment
<B>of </B>
<B>Location.t</B>
<BR>&nbsp;|&nbsp;Unterminated_string
<BR>&nbsp;|&nbsp;Unterminated_string_in_comment
<B>of </B>
<B>Location.t * Location.t</B>
<BR>&nbsp;|&nbsp;Keyword_as_label
<B>of </B>
<B>string</B>
<BR>&nbsp;|&nbsp;Invalid_literal
<B>of </B>
<B>string</B>
<BR>&nbsp;|&nbsp;Invalid_directive
<B>of </B>
<B>string * string option</B>
<BR>&nbsp;
<P>
<P>
<P>
<P>
<I>exception Error </I>
<B>of </B>
<B>error * Location.t</B>
<P>
<P>
<P>
<P>
<P>
<I>val in_comment </I>
:
<B>unit -&gt; bool</B>
<P>
<P>
<P>
<P>
<I>val in_string </I>
:
<B>unit -&gt; bool</B>
<P>
<P>
<P>
<P>
<I>val print_warnings </I>
:
<B>bool ref</B>
<P>
<P>
<P>
<P>
<I>val handle_docstrings </I>
:
<B>bool ref</B>
<P>
<P>
<P>
<P>
<I>val comments </I>
:
<B>unit -&gt; (string * Location.t) list</B>
<P>
<P>
<P>
<P>
<I>val token_with_comments </I>
:
<B>Lexing.lexbuf -&gt; Parser.token</B>
<P>
<P>
<P>
<P>
<I>val set_preprocessor </I>
:
<B>(unit -&gt; unit) -&gt;</B>
<B>((Lexing.lexbuf -&gt; Parser.token) -&gt;</B>
<B>Lexing.lexbuf -&gt; Parser.token) -&gt;</B>
<B>unit</B>
<P>
<P>
<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>