211 lines
2.5 KiB
HTML
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"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
Lexer - The lexical analyzer
|
|
<A NAME="lbAC"> </A>
|
|
<H2>Module</H2>
|
|
|
|
Module Lexer
|
|
<A NAME="lbAD"> </A>
|
|
<H2>Documentation</H2>
|
|
|
|
<P>
|
|
Module
|
|
<B>Lexer</B>
|
|
|
|
<BR> :
|
|
<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 -> unit</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val token </I>
|
|
|
|
:
|
|
<B>Lexing.lexbuf -> Parser.token</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val skip_hash_bang </I>
|
|
|
|
:
|
|
<B>Lexing.lexbuf -> unit</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>type error </I>
|
|
|
|
=
|
|
<BR> | Illegal_character
|
|
<B>of </B>
|
|
|
|
<B>char</B>
|
|
|
|
<BR> | Illegal_escape
|
|
<B>of </B>
|
|
|
|
<B>string * string option</B>
|
|
|
|
<BR> | Reserved_sequence
|
|
<B>of </B>
|
|
|
|
<B>string * string option</B>
|
|
|
|
<BR> | Unterminated_comment
|
|
<B>of </B>
|
|
|
|
<B>Location.t</B>
|
|
|
|
<BR> | Unterminated_string
|
|
<BR> | Unterminated_string_in_comment
|
|
<B>of </B>
|
|
|
|
<B>Location.t * Location.t</B>
|
|
|
|
<BR> | Keyword_as_label
|
|
<B>of </B>
|
|
|
|
<B>string</B>
|
|
|
|
<BR> | Invalid_literal
|
|
<B>of </B>
|
|
|
|
<B>string</B>
|
|
|
|
<BR> | Invalid_directive
|
|
<B>of </B>
|
|
|
|
<B>string * string option</B>
|
|
|
|
<BR>
|
|
<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 -> bool</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val in_string </I>
|
|
|
|
:
|
|
<B>unit -> 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 -> (string * Location.t) list</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val token_with_comments </I>
|
|
|
|
:
|
|
<B>Lexing.lexbuf -> Parser.token</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val set_preprocessor </I>
|
|
|
|
:
|
|
<B>(unit -> unit) -></B>
|
|
|
|
<B>((Lexing.lexbuf -> Parser.token) -></B>
|
|
|
|
<B>Lexing.lexbuf -> Parser.token) -></B>
|
|
|
|
<B>unit</B>
|
|
|
|
<P>
|
|
<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>
|
|
<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>
|