mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-16 15:56:21 -05:00
7 lines
No EOL
7.8 KiB
HTML
7 lines
No EOL
7.8 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Lexer (ocaml.Lexer)</title><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.2.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../index.html">ocaml</a> » Lexer</nav><header class="odoc-preamble"><h1>Module <code><span>Lexer</span></code></h1><p>The lexical analyzer</p><p><b>Warning:</b> this module is unstable and part of <span class="xref-unresolved">compiler-libs</span>.</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-init"><a href="#val-init" class="anchor"></a><code><span><span class="keyword">val</span> init : <span>unit <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-token"><a href="#val-token" class="anchor"></a><code><span><span class="keyword">val</span> token : <span><a href="../Stdlib/Lexing/index.html#type-lexbuf">Stdlib.Lexing.lexbuf</a> <span class="arrow">-></span></span> <a href="../Parser/index.html#type-token">Parser.token</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-skip_hash_bang"><a href="#val-skip_hash_bang" class="anchor"></a><code><span><span class="keyword">val</span> skip_hash_bang : <span><a href="../Stdlib/Lexing/index.html#type-lexbuf">Stdlib.Lexing.lexbuf</a> <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-error"><a href="#type-error" class="anchor"></a><code><span><span class="keyword">type</span> error</span><span> = </span></code><ol><li id="type-error.Illegal_character" class="def variant constructor anchored"><a href="#type-error.Illegal_character" class="anchor"></a><code><span>| </span><span><span class="constructor">Illegal_character</span> <span class="keyword">of</span> char</span></code></li><li id="type-error.Illegal_escape" class="def variant constructor anchored"><a href="#type-error.Illegal_escape" class="anchor"></a><code><span>| </span><span><span class="constructor">Illegal_escape</span> <span class="keyword">of</span> string * <span>string option</span></span></code></li><li id="type-error.Reserved_sequence" class="def variant constructor anchored"><a href="#type-error.Reserved_sequence" class="anchor"></a><code><span>| </span><span><span class="constructor">Reserved_sequence</span> <span class="keyword">of</span> string * <span>string option</span></span></code></li><li id="type-error.Unterminated_comment" class="def variant constructor anchored"><a href="#type-error.Unterminated_comment" class="anchor"></a><code><span>| </span><span><span class="constructor">Unterminated_comment</span> <span class="keyword">of</span> <a href="../Location/index.html#type-t">Location.t</a></span></code></li><li id="type-error.Unterminated_string" class="def variant constructor anchored"><a href="#type-error.Unterminated_string" class="anchor"></a><code><span>| </span><span><span class="constructor">Unterminated_string</span></span></code></li><li id="type-error.Unterminated_string_in_comment" class="def variant constructor anchored"><a href="#type-error.Unterminated_string_in_comment" class="anchor"></a><code><span>| </span><span><span class="constructor">Unterminated_string_in_comment</span> <span class="keyword">of</span> <a href="../Location/index.html#type-t">Location.t</a> * <a href="../Location/index.html#type-t">Location.t</a></span></code></li><li id="type-error.Empty_character_literal" class="def variant constructor anchored"><a href="#type-error.Empty_character_literal" class="anchor"></a><code><span>| </span><span><span class="constructor">Empty_character_literal</span></span></code></li><li id="type-error.Keyword_as_label" class="def variant constructor anchored"><a href="#type-error.Keyword_as_label" class="anchor"></a><code><span>| </span><span><span class="constructor">Keyword_as_label</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Invalid_literal" class="def variant constructor anchored"><a href="#type-error.Invalid_literal" class="anchor"></a><code><span>| </span><span><span class="constructor">Invalid_literal</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Invalid_directive" class="def variant constructor anchored"><a href="#type-error.Invalid_directive" class="anchor"></a><code><span>| </span><span><span class="constructor">Invalid_directive</span> <span class="keyword">of</span> string * <span>string option</span></span></code></li></ol></div></div><div class="odoc-spec"><div class="spec exception anchored" id="exception-Error"><a href="#exception-Error" class="anchor"></a><code><span><span class="keyword">exception</span> </span><span><span class="exception">Error</span> <span class="keyword">of</span> <a href="#type-error">error</a> * <a href="../Location/index.html#type-t">Location.t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-in_comment"><a href="#val-in_comment" class="anchor"></a><code><span><span class="keyword">val</span> in_comment : <span>unit <span class="arrow">-></span></span> bool</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-in_string"><a href="#val-in_string" class="anchor"></a><code><span><span class="keyword">val</span> in_string : <span>unit <span class="arrow">-></span></span> bool</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-print_warnings"><a href="#val-print_warnings" class="anchor"></a><code><span><span class="keyword">val</span> print_warnings : <span>bool <a href="../Stdlib/index.html#type-ref">ref</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-handle_docstrings"><a href="#val-handle_docstrings" class="anchor"></a><code><span><span class="keyword">val</span> handle_docstrings : <span>bool <a href="../Stdlib/index.html#type-ref">ref</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-comments"><a href="#val-comments" class="anchor"></a><code><span><span class="keyword">val</span> comments : <span>unit <span class="arrow">-></span></span> <span><span>(string * <a href="../Location/index.html#type-t">Location.t</a>)</span> list</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-token_with_comments"><a href="#val-token_with_comments" class="anchor"></a><code><span><span class="keyword">val</span> token_with_comments : <span><a href="../Stdlib/Lexing/index.html#type-lexbuf">Stdlib.Lexing.lexbuf</a> <span class="arrow">-></span></span> <a href="../Parser/index.html#type-token">Parser.token</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-set_preprocessor"><a href="#val-set_preprocessor" class="anchor"></a><code><span><span class="keyword">val</span> set_preprocessor :
|
||
<span><span>(<span>unit <span class="arrow">-></span></span> unit)</span> <span class="arrow">-></span></span>
|
||
<span><span>(<span><span>(<span><a href="../Stdlib/Lexing/index.html#type-lexbuf">Stdlib.Lexing.lexbuf</a> <span class="arrow">-></span></span> <a href="../Parser/index.html#type-token">Parser.token</a>)</span> <span class="arrow">-></span></span>
|
||
<span><a href="../Stdlib/Lexing/index.html#type-lexbuf">Stdlib.Lexing.lexbuf</a> <span class="arrow">-></span></span>
|
||
<a href="../Parser/index.html#type-token">Parser.token</a>)</span> <span class="arrow">-></span></span>
|
||
unit</span></code></div></div></div></body></html> |