mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2026-01-21 16:56:40 -05:00
deploy: 55eb9c2a2f
This commit is contained in:
parent
a462ee4e98
commit
63119d6ccf
265 changed files with 3039 additions and 905 deletions
File diff suppressed because one or more lines are too long
|
|
@ -11,7 +11,7 @@
|
|||
<span><span class="label">middle_end</span>:<a href="#type-middle_end">middle_end</a> <span class="arrow">-></span></span>
|
||||
<span><span class="label">ppf_dump</span>:<a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Lambda/index.html#type-program">Lambda.program</a> <span class="arrow">-></span></span>
|
||||
unit</span></code></div><div class="spec-doc"><p>Compile an implementation from Lambda using the given middle end.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-compile_implementation_linear"><a href="#val-compile_implementation_linear" class="anchor"></a><code><span><span class="keyword">val</span> compile_implementation_linear : <span>string <span class="arrow">-></span></span> <span><span class="label">progname</span>:string <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-compile_phrase"><a href="#val-compile_phrase" class="anchor"></a><code><span><span class="keyword">val</span> compile_phrase : <span><span class="label">ppf_dump</span>:<a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span> <span><a href="../Cmm/index.html#type-phrase">Cmm.phrase</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.Assembler_error" class="def variant constructor anchored"><a href="#type-error.Assembler_error" class="anchor"></a><code><span>| </span><span><span class="constructor">Assembler_error</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Mismatched_for_pack" class="def variant constructor anchored"><a href="#type-error.Mismatched_for_pack" class="anchor"></a><code><span>| </span><span><span class="constructor">Mismatched_for_pack</span> <span class="keyword">of</span> <span>string option</span></span></code></li><li id="type-error.Asm_generation" class="def variant constructor anchored"><a href="#type-error.Asm_generation" class="anchor"></a><code><span>| </span><span><span class="constructor">Asm_generation</span> <span class="keyword">of</span> string * <a href="../Emitaux/index.html#type-error">Emitaux.error</a></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></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span> <span><a href="#type-error">error</a> <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-compile_unit"><a href="#val-compile_unit" class="anchor"></a><code><span><span class="keyword">val</span> compile_unit :
|
||||
unit</span></code></div><div class="spec-doc"><p>Compile an implementation from Lambda using the given middle end.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-compile_implementation_linear"><a href="#val-compile_implementation_linear" class="anchor"></a><code><span><span class="keyword">val</span> compile_implementation_linear : <span><a href="../Unit_info/index.html#type-t">Unit_info.t</a> <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-compile_phrase"><a href="#val-compile_phrase" class="anchor"></a><code><span><span class="keyword">val</span> compile_phrase : <span><span class="label">ppf_dump</span>:<a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span> <span><a href="../Cmm/index.html#type-phrase">Cmm.phrase</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.Assembler_error" class="def variant constructor anchored"><a href="#type-error.Assembler_error" class="anchor"></a><code><span>| </span><span><span class="constructor">Assembler_error</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Mismatched_for_pack" class="def variant constructor anchored"><a href="#type-error.Mismatched_for_pack" class="anchor"></a><code><span>| </span><span><span class="constructor">Mismatched_for_pack</span> <span class="keyword">of</span> <span>string option</span></span></code></li><li id="type-error.Asm_generation" class="def variant constructor anchored"><a href="#type-error.Asm_generation" class="anchor"></a><code><span>| </span><span><span class="constructor">Asm_generation</span> <span class="keyword">of</span> string * <a href="../Emitaux/index.html#type-error">Emitaux.error</a></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></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-format_printer">Format_doc.format_printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error_doc"><a href="#val-report_error_doc" class="anchor"></a><code><span><span class="keyword">val</span> report_error_doc : <span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-compile_unit"><a href="#val-compile_unit" class="anchor"></a><code><span><span class="keyword">val</span> compile_unit :
|
||||
<span><span class="label">output_prefix</span>:string <span class="arrow">-></span></span>
|
||||
<span><span class="label">asm_filename</span>:string <span class="arrow">-></span></span>
|
||||
<span><span class="label">keep_asm</span>:bool <span class="arrow">-></span></span>
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Asmlibrarian (ocaml.Asmlibrarian)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Asmlibrarian</nav><header class="odoc-preamble"><h1>Module <code><span>Asmlibrarian</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-create_archive"><a href="#val-create_archive" class="anchor"></a><code><span><span class="keyword">val</span> create_archive : <span><span>string list</span> <span class="arrow">-></span></span> <span>string <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.File_not_found" class="def variant constructor anchored"><a href="#type-error.File_not_found" class="anchor"></a><code><span>| </span><span><span class="constructor">File_not_found</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Archiver_error" class="def variant constructor anchored"><a href="#type-error.Archiver_error" class="anchor"></a><code><span>| </span><span><span class="constructor">Archiver_error</span> <span class="keyword">of</span> string</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></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span> <span><a href="#type-error">error</a> <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Asmlibrarian (ocaml.Asmlibrarian)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Asmlibrarian</nav><header class="odoc-preamble"><h1>Module <code><span>Asmlibrarian</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-create_archive"><a href="#val-create_archive" class="anchor"></a><code><span><span class="keyword">val</span> create_archive : <span><span>string list</span> <span class="arrow">-></span></span> <span>string <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.File_not_found" class="def variant constructor anchored"><a href="#type-error.File_not_found" class="anchor"></a><code><span>| </span><span><span class="constructor">File_not_found</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Archiver_error" class="def variant constructor anchored"><a href="#type-error.Archiver_error" class="anchor"></a><code><span>| </span><span><span class="constructor">Archiver_error</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Link_error" class="def variant constructor anchored"><a href="#type-error.Link_error" class="anchor"></a><code><span>| </span><span><span class="constructor">Link_error</span> <span class="keyword">of</span> <a href="../Linkdeps/index.html#type-error">Linkdeps.error</a></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></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-format_printer">Format_doc.format_printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error_doc"><a href="#val-report_error_doc" class="anchor"></a><code><span><span class="keyword">val</span> report_error_doc : <span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div></div></body></html>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -5,4 +5,4 @@
|
|||
<span><span>string list</span> <span class="arrow">-></span></span>
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<span><span class="label">backend</span>:<span>(<span class="keyword">module</span> <a href="../Backend_intf/module-type-S/index.html">Backend_intf.S</a>)</span> <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_renaming" class="def variant constructor anchored"><a href="#type-error.Illegal_renaming" class="anchor"></a><code><span>| </span><span><span class="constructor">Illegal_renaming</span> <span class="keyword">of</span> string * string * string</span></code></li><li id="type-error.Forward_reference" class="def variant constructor anchored"><a href="#type-error.Forward_reference" class="anchor"></a><code><span>| </span><span><span class="constructor">Forward_reference</span> <span class="keyword">of</span> string * string</span></code></li><li id="type-error.Wrong_for_pack" class="def variant constructor anchored"><a href="#type-error.Wrong_for_pack" class="anchor"></a><code><span>| </span><span><span class="constructor">Wrong_for_pack</span> <span class="keyword">of</span> string * string</span></code></li><li id="type-error.Linking_error" class="def variant constructor anchored"><a href="#type-error.Linking_error" class="anchor"></a><code><span>| </span><span><span class="constructor">Linking_error</span></span></code></li><li id="type-error.Assembler_error" class="def variant constructor anchored"><a href="#type-error.Assembler_error" class="anchor"></a><code><span>| </span><span><span class="constructor">Assembler_error</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.File_not_found" class="def variant constructor anchored"><a href="#type-error.File_not_found" class="anchor"></a><code><span>| </span><span><span class="constructor">File_not_found</span> <span class="keyword">of</span> string</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></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span> <span><a href="#type-error">error</a> <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html>
|
||||
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_renaming" class="def variant constructor anchored"><a href="#type-error.Illegal_renaming" class="anchor"></a><code><span>| </span><span><span class="constructor">Illegal_renaming</span> <span class="keyword">of</span> string * string * string</span></code></li><li id="type-error.Forward_reference" class="def variant constructor anchored"><a href="#type-error.Forward_reference" class="anchor"></a><code><span>| </span><span><span class="constructor">Forward_reference</span> <span class="keyword">of</span> string * string</span></code></li><li id="type-error.Wrong_for_pack" class="def variant constructor anchored"><a href="#type-error.Wrong_for_pack" class="anchor"></a><code><span>| </span><span><span class="constructor">Wrong_for_pack</span> <span class="keyword">of</span> string * string</span></code></li><li id="type-error.Linking_error" class="def variant constructor anchored"><a href="#type-error.Linking_error" class="anchor"></a><code><span>| </span><span><span class="constructor">Linking_error</span></span></code></li><li id="type-error.Assembler_error" class="def variant constructor anchored"><a href="#type-error.Assembler_error" class="anchor"></a><code><span>| </span><span><span class="constructor">Assembler_error</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.File_not_found" class="def variant constructor anchored"><a href="#type-error.File_not_found" class="anchor"></a><code><span>| </span><span><span class="constructor">File_not_found</span> <span class="keyword">of</span> string</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></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-format_printer">Format_doc.format_printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error_doc"><a href="#val-report_error_doc" class="anchor"></a><code><span><span class="keyword">val</span> report_error_doc : <span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div></div></body></html>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Const (ocaml.Ast_helper.Const)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » <a href="../index.html">Ast_helper</a> » Const</nav><header class="odoc-preamble"><h1>Module <code><span>Ast_helper.Const</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-char"><a href="#val-char" class="anchor"></a><code><span><span class="keyword">val</span> char : <span>char <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-string"><a href="#val-string" class="anchor"></a><code><span><span class="keyword">val</span> string :
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Const (ocaml.Ast_helper.Const)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » <a href="../index.html">Ast_helper</a> » Const</nav><header class="odoc-preamble"><h1>Module <code><span>Ast_helper.Const</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-mk"><a href="#val-mk" class="anchor"></a><code><span><span class="keyword">val</span> mk : <span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span> <span><a href="../../Parsetree/index.html#type-constant_desc">Parsetree.constant_desc</a> <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-char"><a href="#val-char" class="anchor"></a><code><span><span class="keyword">val</span> char : <span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span> <span>char <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-string"><a href="#val-string" class="anchor"></a><code><span><span class="keyword">val</span> string :
|
||||
<span><span class="optlabel">?quotation_delimiter</span>:string <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?loc</span>:<a href="../../Location/index.html#type-t">Location.t</a> <span class="arrow">-></span></span>
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-integer"><a href="#val-integer" class="anchor"></a><code><span><span class="keyword">val</span> integer : <span><span class="optlabel">?suffix</span>:char <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-int"><a href="#val-int" class="anchor"></a><code><span><span class="keyword">val</span> int : <span><span class="optlabel">?suffix</span>:char <span class="arrow">-></span></span> <span>int <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-int32"><a href="#val-int32" class="anchor"></a><code><span><span class="keyword">val</span> int32 : <span><span class="optlabel">?suffix</span>:char <span class="arrow">-></span></span> <span>int32 <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-int64"><a href="#val-int64" class="anchor"></a><code><span><span class="keyword">val</span> int64 : <span><span class="optlabel">?suffix</span>:char <span class="arrow">-></span></span> <span>int64 <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-nativeint"><a href="#val-nativeint" class="anchor"></a><code><span><span class="keyword">val</span> nativeint : <span><span class="optlabel">?suffix</span>:char <span class="arrow">-></span></span> <span>nativeint <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-float"><a href="#val-float" class="anchor"></a><code><span><span class="keyword">val</span> float : <span><span class="optlabel">?suffix</span>:char <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div></div></body></html>
|
||||
<a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-integer"><a href="#val-integer" class="anchor"></a><code><span><span class="keyword">val</span> integer : <span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span> <span><span class="optlabel">?suffix</span>:char <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-int"><a href="#val-int" class="anchor"></a><code><span><span class="keyword">val</span> int : <span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span> <span><span class="optlabel">?suffix</span>:char <span class="arrow">-></span></span> <span>int <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-int32"><a href="#val-int32" class="anchor"></a><code><span><span class="keyword">val</span> int32 : <span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span> <span><span class="optlabel">?suffix</span>:char <span class="arrow">-></span></span> <span>int32 <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-int64"><a href="#val-int64" class="anchor"></a><code><span><span class="keyword">val</span> int64 : <span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span> <span><span class="optlabel">?suffix</span>:char <span class="arrow">-></span></span> <span>int64 <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-nativeint"><a href="#val-nativeint" class="anchor"></a><code><span><span class="keyword">val</span> nativeint : <span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span> <span><span class="optlabel">?suffix</span>:char <span class="arrow">-></span></span> <span>nativeint <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-float"><a href="#val-float" class="anchor"></a><code><span><span class="keyword">val</span> float : <span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span> <span><span class="optlabel">?suffix</span>:char <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> <a href="../../Parsetree/index.html#type-constant">Parsetree.constant</a></span></code></div></div></div></body></html>
|
||||
|
|
|
|||
|
|
@ -13,17 +13,12 @@
|
|||
<span><a href="../../Asttypes/index.html#type-rec_flag">Asttypes.rec_flag</a> <span class="arrow">-></span></span>
|
||||
<span><span><a href="../../Parsetree/index.html#type-value_binding">Parsetree.value_binding</a> list</span> <span class="arrow">-></span></span>
|
||||
<span><a href="../../Parsetree/index.html#type-expression">Parsetree.expression</a> <span class="arrow">-></span></span>
|
||||
<a href="../../Parsetree/index.html#type-expression">Parsetree.expression</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-fun_"><a href="#val-fun_" class="anchor"></a><code><span><span class="keyword">val</span> fun_ :
|
||||
<span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?attrs</span>:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../../Asttypes/index.html#type-arg_label">Asttypes.arg_label</a> <span class="arrow">-></span></span>
|
||||
<span><span><a href="../../Parsetree/index.html#type-expression">Parsetree.expression</a> option</span> <span class="arrow">-></span></span>
|
||||
<span><a href="../../Parsetree/index.html#type-pattern">Parsetree.pattern</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../../Parsetree/index.html#type-expression">Parsetree.expression</a> <span class="arrow">-></span></span>
|
||||
<a href="../../Parsetree/index.html#type-expression">Parsetree.expression</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-function_"><a href="#val-function_" class="anchor"></a><code><span><span class="keyword">val</span> function_ :
|
||||
<span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?attrs</span>:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">-></span></span>
|
||||
<span><span><a href="../../Parsetree/index.html#type-case">Parsetree.case</a> list</span> <span class="arrow">-></span></span>
|
||||
<span><span><a href="../../Parsetree/index.html#type-function_param">Parsetree.function_param</a> list</span> <span class="arrow">-></span></span>
|
||||
<span><span><a href="../../Parsetree/index.html#type-type_constraint">Parsetree.type_constraint</a> option</span> <span class="arrow">-></span></span>
|
||||
<span><a href="../../Parsetree/index.html#type-function_body">Parsetree.function_body</a> <span class="arrow">-></span></span>
|
||||
<a href="../../Parsetree/index.html#type-expression">Parsetree.expression</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-apply"><a href="#val-apply" class="anchor"></a><code><span><span class="keyword">val</span> apply :
|
||||
<span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?attrs</span>:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">-></span></span>
|
||||
|
|
|
|||
|
|
@ -59,6 +59,11 @@
|
|||
<span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?attrs</span>:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../../Parsetree/index.html#type-pattern">Parsetree.pattern</a> <span class="arrow">-></span></span>
|
||||
<a href="../../Parsetree/index.html#type-pattern">Parsetree.pattern</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-effect_"><a href="#val-effect_" class="anchor"></a><code><span><span class="keyword">val</span> effect_ :
|
||||
<span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?attrs</span>:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../../Parsetree/index.html#type-pattern">Parsetree.pattern</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../../Parsetree/index.html#type-pattern">Parsetree.pattern</a> <span class="arrow">-></span></span>
|
||||
<a href="../../Parsetree/index.html#type-pattern">Parsetree.pattern</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-extension"><a href="#val-extension" class="anchor"></a><code><span><span class="keyword">val</span> extension :
|
||||
<span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?attrs</span>:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">-></span></span>
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
<span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?attrs</span>:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a> <span class="arrow">-></span></span>
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<span><span>string <a href="../index.html#type-with_loc">with_loc</a></span> <span class="arrow">-></span></span>
|
||||
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-variant"><a href="#val-variant" class="anchor"></a><code><span><span class="keyword">val</span> variant :
|
||||
<span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?attrs</span>:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">-></span></span>
|
||||
|
|
@ -49,6 +49,11 @@
|
|||
<span><span class="optlabel">?attrs</span>:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../index.html#type-lid">lid</a> <span class="arrow">-></span></span>
|
||||
<span><span><span>(<a href="../index.html#type-lid">lid</a> * <a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a>)</span> list</span> <span class="arrow">-></span></span>
|
||||
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-open_"><a href="#val-open_" class="anchor"></a><code><span><span class="keyword">val</span> open_ :
|
||||
<span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?attrs</span>:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../index.html#type-lid">lid</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a> <span class="arrow">-></span></span>
|
||||
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-extension"><a href="#val-extension" class="anchor"></a><code><span><span class="keyword">val</span> extension :
|
||||
<span><span class="optlabel">?loc</span>:<a href="../index.html#type-loc">loc</a> <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?attrs</span>:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">-></span></span>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Attr_helper (ocaml.Attr_helper)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Attr_helper</nav><header class="odoc-preamble"><h1>Module <code><span>Attr_helper</span></code></h1><p>Helpers for attributes</p><p><b>Warning:</b> this module is unstable and part of <span class="xref-unresolved" title="Compiler_libs">compiler-libs</span>.</p></header><div class="odoc-content"><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.Multiple_attributes" class="def variant constructor anchored"><a href="#type-error.Multiple_attributes" class="anchor"></a><code><span>| </span><span><span class="constructor">Multiple_attributes</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.No_payload_expected" class="def variant constructor anchored"><a href="#type-error.No_payload_expected" class="anchor"></a><code><span>| </span><span><span class="constructor">No_payload_expected</span> <span class="keyword">of</span> string</span></code></li></ol></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-get_no_payload_attribute"><a href="#val-get_no_payload_attribute" class="anchor"></a><code><span><span class="keyword">val</span> get_no_payload_attribute :
|
||||
<span><span>string list</span> <span class="arrow">-></span></span>
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<span><a href="../Parsetree/index.html#type-attributes">Parsetree.attributes</a> <span class="arrow">-></span></span>
|
||||
<span><span>string <a href="../Asttypes/index.html#type-loc">Asttypes.loc</a></span> option</span></span></code></div><div class="spec-doc"><p>The <code>string list</code> argument of the following functions is a list of alternative names for the attribute we are looking for. For instance:</p><pre class="language-ocaml"><code>["foo"; "ocaml.foo"]</code></pre></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-has_no_payload_attribute"><a href="#val-has_no_payload_attribute" class="anchor"></a><code><span><span class="keyword">val</span> has_no_payload_attribute : <span><span>string list</span> <span class="arrow">-></span></span> <span><a href="../Parsetree/index.html#type-attributes">Parsetree.attributes</a> <span class="arrow">-></span></span> bool</span></code></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="../Location/index.html#type-t">Location.t</a> * <a href="#type-error">error</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span> <span><a href="#type-error">error</a> <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html>
|
||||
<span><span>string <a href="../Asttypes/index.html#type-loc">Asttypes.loc</a></span> option</span></span></code></div><div class="spec-doc"><p>The <code>string</code> argument of the following functions is the name of the attribute we are looking for. If the argument is <code>"foo"</code>, these functions will find attributes with the name <code>"foo"</code> or <code>"ocaml.foo"</code></p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-has_no_payload_attribute"><a href="#val-has_no_payload_attribute" class="anchor"></a><code><span><span class="keyword">val</span> has_no_payload_attribute : <span>string <span class="arrow">-></span></span> <span><a href="../Parsetree/index.html#type-attributes">Parsetree.attributes</a> <span class="arrow">-></span></span> bool</span></code></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="../Location/index.html#type-t">Location.t</a> * <a href="#type-error">error</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-format_printer">Format_doc.format_printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error_doc"><a href="#val-report_error_doc" class="anchor"></a><code><span><span class="keyword">val</span> report_error_doc : <span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div></div></body></html>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -2,9 +2,7 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Bytegen (ocaml.Bytegen)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Bytegen</nav><header class="odoc-preamble"><h1>Module <code><span>Bytegen</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-compile_implementation"><a href="#val-compile_implementation" class="anchor"></a><code><span><span class="keyword">val</span> compile_implementation :
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<span><a href="../Lambda/index.html#type-lambda">Lambda.lambda</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Instruct/index.html#type-instruction">Instruct.instruction</a> list</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-compile_phrase"><a href="#val-compile_phrase" class="anchor"></a><code><span><span class="keyword">val</span> compile_phrase :
|
||||
<span><a href="../Lambda/index.html#type-lambda">Lambda.lambda</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Instruct/index.html#type-instruction">Instruct.instruction</a> list</span> * <span><a href="../Instruct/index.html#type-instruction">Instruct.instruction</a> list</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-merge_events"><a href="#val-merge_events" class="anchor"></a><code><span><span class="keyword">val</span> merge_events :
|
||||
<span><a href="../Instruct/index.html#type-instruction">Instruct.instruction</a> list</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-compile_phrase"><a href="#val-compile_phrase" class="anchor"></a><code><span><span class="keyword">val</span> compile_phrase : <span><a href="../Lambda/index.html#type-lambda">Lambda.lambda</a> <span class="arrow">-></span></span> <span><a href="../Instruct/index.html#type-instruction">Instruct.instruction</a> list</span> * bool</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-merge_events"><a href="#val-merge_events" class="anchor"></a><code><span><span class="keyword">val</span> merge_events :
|
||||
<span><a href="../Instruct/index.html#type-debug_event">Instruct.debug_event</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Instruct/index.html#type-debug_event">Instruct.debug_event</a> <span class="arrow">-></span></span>
|
||||
<a href="../Instruct/index.html#type-debug_event">Instruct.debug_event</a></span></code></div></div></div></body></html>
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Bytelibrarian (ocaml.Bytelibrarian)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Bytelibrarian</nav><header class="odoc-preamble"><h1>Module <code><span>Bytelibrarian</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-create_archive"><a href="#val-create_archive" class="anchor"></a><code><span><span class="keyword">val</span> create_archive : <span><span>string list</span> <span class="arrow">-></span></span> <span>string <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.File_not_found" class="def variant constructor anchored"><a href="#type-error.File_not_found" class="anchor"></a><code><span>| </span><span><span class="constructor">File_not_found</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Not_an_object_file" class="def variant constructor anchored"><a href="#type-error.Not_an_object_file" class="anchor"></a><code><span>| </span><span><span class="constructor">Not_an_object_file</span> <span class="keyword">of</span> string</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></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span> <span><a href="#type-error">error</a> <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-reset"><a href="#val-reset" class="anchor"></a><code><span><span class="keyword">val</span> reset : <span>unit <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Bytelibrarian (ocaml.Bytelibrarian)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Bytelibrarian</nav><header class="odoc-preamble"><h1>Module <code><span>Bytelibrarian</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-create_archive"><a href="#val-create_archive" class="anchor"></a><code><span><span class="keyword">val</span> create_archive : <span><span>string list</span> <span class="arrow">-></span></span> <span>string <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.File_not_found" class="def variant constructor anchored"><a href="#type-error.File_not_found" class="anchor"></a><code><span>| </span><span><span class="constructor">File_not_found</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Not_an_object_file" class="def variant constructor anchored"><a href="#type-error.Not_an_object_file" class="anchor"></a><code><span>| </span><span><span class="constructor">Not_an_object_file</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Link_error" class="def variant constructor anchored"><a href="#type-error.Link_error" class="anchor"></a><code><span>| </span><span><span class="constructor">Link_error</span> <span class="keyword">of</span> <a href="../Linkdeps/index.html#type-error">Linkdeps.error</a></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></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-format_printer">Format_doc.format_printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error_doc"><a href="#val-report_error_doc" class="anchor"></a><code><span><span class="keyword">val</span> report_error_doc : <span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-reset"><a href="#val-reset" class="anchor"></a><code><span><span class="keyword">val</span> reset : <span>unit <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html>
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Dep (ocaml.Bytelink.Dep)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » <a href="../index.html">Bytelink</a> » Dep</nav><header class="odoc-preamble"><h1>Module <code><span>Bytelink.Dep</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> t</span><span> = <a href="../../Misc/index.html#type-modname">Misc.modname</a> * <a href="../../Misc/index.html#type-modname">Misc.modname</a></span></code></div><div class="spec-doc"><p>The type of the set elements.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-compare"><a href="#val-compare" class="anchor"></a><code><span><span class="keyword">val</span> compare : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> <span><a href="#type-t">t</a> <span class="arrow">-></span></span> int</span></code></div><div class="spec-doc"><p>A total ordering function over the set elements. This is a two-argument function <code>f</code> such that <code>f e1 e2</code> is zero if the elements <code>e1</code> and <code>e2</code> are equal, <code>f e1 e2</code> is strictly negative if <code>e1</code> is smaller than <code>e2</code>, and <code>f e1 e2</code> is strictly positive if <code>e1</code> is greater than <code>e2</code>. Example: a suitable ordering function is the generic structural comparison function <code>Stdlib.compare</code>.</p></div></div></div></body></html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Dep (ocaml.Bytelink.Dep)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » <a href="../index.html">Bytelink</a> » Dep</nav><header class="odoc-preamble"><h1>Module <code><span>Bytelink.Dep</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> t</span><span> = <a href="../../Cmo_format/index.html#type-compunit">Cmo_format.compunit</a> * <a href="../../Cmo_format/index.html#type-compunit">Cmo_format.compunit</a></span></code></div><div class="spec-doc"><p>The type of the set elements.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-compare"><a href="#val-compare" class="anchor"></a><code><span><span class="keyword">val</span> compare : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> <span><a href="#type-t">t</a> <span class="arrow">-></span></span> int</span></code></div><div class="spec-doc"><p>A total ordering function over the set elements. This is a two-argument function <code>f</code> such that <code>f e1 e2</code> is zero if the elements <code>e1</code> and <code>e2</code> are equal, <code>f e1 e2</code> is strictly negative if <code>e1</code> is smaller than <code>e2</code>, and <code>f e1 e2</code> is strictly positive if <code>e1</code> is greater than <code>e2</code>. Example: a suitable ordering function is the generic structural comparison function <code>Stdlib.compare</code>.</p></div></div></div></body></html>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -4,4 +4,4 @@
|
|||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||||
<span><span>string list</span> <span class="arrow">-></span></span>
|
||||
<span>string <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.Forward_reference" class="def variant constructor anchored"><a href="#type-error.Forward_reference" class="anchor"></a><code><span>| </span><span><span class="constructor">Forward_reference</span> <span class="keyword">of</span> string * <a href="../Ident/index.html#type-t">Ident.t</a></span></code></li><li id="type-error.Multiple_definition" class="def variant constructor anchored"><a href="#type-error.Multiple_definition" class="anchor"></a><code><span>| </span><span><span class="constructor">Multiple_definition</span> <span class="keyword">of</span> string * <a href="../Ident/index.html#type-t">Ident.t</a></span></code></li><li id="type-error.Not_an_object_file" class="def variant constructor anchored"><a href="#type-error.Not_an_object_file" class="anchor"></a><code><span>| </span><span><span class="constructor">Not_an_object_file</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Illegal_renaming" class="def variant constructor anchored"><a href="#type-error.Illegal_renaming" class="anchor"></a><code><span>| </span><span><span class="constructor">Illegal_renaming</span> <span class="keyword">of</span> string * string * string</span></code></li><li id="type-error.File_not_found" class="def variant constructor anchored"><a href="#type-error.File_not_found" class="anchor"></a><code><span>| </span><span><span class="constructor">File_not_found</span> <span class="keyword">of</span> string</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></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span> <span><a href="#type-error">error</a> <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html>
|
||||
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.Forward_reference" class="def variant constructor anchored"><a href="#type-error.Forward_reference" class="anchor"></a><code><span>| </span><span><span class="constructor">Forward_reference</span> <span class="keyword">of</span> string * <a href="../Cmo_format/index.html#type-compunit">Cmo_format.compunit</a></span></code></li><li id="type-error.Multiple_definition" class="def variant constructor anchored"><a href="#type-error.Multiple_definition" class="anchor"></a><code><span>| </span><span><span class="constructor">Multiple_definition</span> <span class="keyword">of</span> string * <a href="../Cmo_format/index.html#type-compunit">Cmo_format.compunit</a></span></code></li><li id="type-error.Not_an_object_file" class="def variant constructor anchored"><a href="#type-error.Not_an_object_file" class="anchor"></a><code><span>| </span><span><span class="constructor">Not_an_object_file</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Illegal_renaming" class="def variant constructor anchored"><a href="#type-error.Illegal_renaming" class="anchor"></a><code><span>| </span><span><span class="constructor">Illegal_renaming</span> <span class="keyword">of</span> <a href="../Cmo_format/index.html#type-compunit">Cmo_format.compunit</a> * string * <a href="../Cmo_format/index.html#type-compunit">Cmo_format.compunit</a></span></code></li><li id="type-error.File_not_found" class="def variant constructor anchored"><a href="#type-error.File_not_found" class="anchor"></a><code><span>| </span><span><span class="constructor">File_not_found</span> <span class="keyword">of</span> string</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></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-format_printer">Format_doc.format_printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error_doc"><a href="#val-report_error_doc" class="anchor"></a><code><span><span class="keyword">val</span> report_error_doc : <span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div></div></body></html>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,10 @@
|
|||
<span><span>(<span><span class="type-var">'env</span> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <span class="type-var">'answer</span>)</span> <span class="arrow">-></span></span>
|
||||
<span><span>(<span><span class="type-var">'env</span> <span class="arrow">-></span></span> <span class="type-var">'answer</span>)</span> <span class="arrow">-></span></span>
|
||||
<span><span class="type-var">'env</span> <span class="arrow">-></span></span>
|
||||
<span class="type-var">'answer</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_nt"><a href="#val-goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_prod"><a href="#val-goto_prod" class="anchor"></a><code><span><span class="keyword">val</span> goto_prod : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-maybe_goto_nt"><a href="#val-maybe_goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> maybe_goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <span><a href="#type-state">state</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-is_start"><a href="#val-is_start" class="anchor"></a><code><span><span class="keyword">val</span> is_start : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></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></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-semantic_action"><a href="#type-semantic_action" class="anchor"></a><code><span><span class="keyword">type</span> semantic_action</span><span> =
|
||||
<span class="type-var">'answer</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-maybe_shift_t"><a href="#val-maybe_shift_t" class="anchor"></a><code><span><span class="keyword">val</span> maybe_shift_t : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-terminal">terminal</a> <span class="arrow">-></span></span> <span><a href="#type-state">state</a> option</span></span></code></div><div class="spec-doc"><p><code>maybe_shift_t s t</code> determines whether there exists a transition out of the state <code>s</code>, labeled with the terminal symbol <code>t</code>, to some state <code>s'</code>. If so, it returns <code>Some s'</code>. Otherwise, it returns <code>None</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-may_reduce_prod"><a href="#val-may_reduce_prod" class="anchor"></a><code><span><span class="keyword">val</span> may_reduce_prod : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-terminal">terminal</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></div><div class="spec-doc"><p><code>may_reduce_prod s t prod</code> determines whether in the state <code>s</code>, with lookahead symbol <code>t</code>, the automaton reduces production <code>prod</code>. This test accounts for the possible existence of a default reduction.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_nt"><a href="#val-goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_prod"><a href="#val-goto_prod" class="anchor"></a><code><span><span class="keyword">val</span> goto_prod : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-maybe_goto_nt"><a href="#val-maybe_goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> maybe_goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <span><a href="#type-state">state</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-lhs"><a href="#val-lhs" class="anchor"></a><code><span><span class="keyword">val</span> lhs : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-nonterminal">nonterminal</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-is_start"><a href="#val-is_start" class="anchor"></a><code><span><span class="keyword">val</span> is_start : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></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></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-semantic_action"><a href="#type-semantic_action" class="anchor"></a><code><span><span class="keyword">type</span> semantic_action</span><span> =
|
||||
<span><span><span>(<a href="#type-state">state</a>, <a href="#type-semantic_value">semantic_value</a>, <a href="#type-token">token</a>)</span> <a href="../../../EngineTypes/index.html#type-env">EngineTypes.env</a></span> <span class="arrow">-></span></span>
|
||||
<span><span>(<a href="#type-state">state</a>, <a href="#type-semantic_value">semantic_value</a>)</span> <a href="../../../EngineTypes/index.html#type-stack">EngineTypes.stack</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-semantic_action"><a href="#val-semantic_action" class="anchor"></a><code><span><span class="keyword">val</span> semantic_action : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-semantic_action">semantic_action</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-may_reduce"><a href="#val-may_reduce" class="anchor"></a><code><span><span class="keyword">val</span> may_reduce : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-log"><a href="#val-log" class="anchor"></a><code><span><span class="keyword">val</span> log : bool</span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Log"><a href="#module-Log" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Log/index.html">Log</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div></div></body></html>
|
||||
<span><span>(<a href="#type-state">state</a>, <a href="#type-semantic_value">semantic_value</a>)</span> <a href="../../../EngineTypes/index.html#type-stack">EngineTypes.stack</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-semantic_action"><a href="#val-semantic_action" class="anchor"></a><code><span><span class="keyword">val</span> semantic_action : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-semantic_action">semantic_action</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-may_reduce"><a href="#val-may_reduce" class="anchor"></a><code><span><span class="keyword">val</span> may_reduce : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-log"><a href="#val-log" class="anchor"></a><code><span><span class="keyword">val</span> log : bool</span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Log"><a href="#module-Log" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Log/index.html">Log</a></span><span> :
|
||||
<a href="../../../EngineTypes/module-type-LOG/index.html">EngineTypes.LOG</a>
|
||||
<span class="keyword">with</span> <span><span class="keyword">type</span> <a href="../../../EngineTypes/module-type-LOG/index.html#type-state">state</a> := <a href="#type-state">state</a></span>
|
||||
<span class="keyword">and</span> <span><span class="keyword">type</span> <a href="../../../EngineTypes/module-type-LOG/index.html#type-terminal">terminal</a> := <a href="#type-terminal">terminal</a></span>
|
||||
<span class="keyword">and</span> <span><span class="keyword">type</span> <a href="../../../EngineTypes/module-type-LOG/index.html#type-production">production</a> := <a href="#type-production">production</a></span></span></code></div></div></div></body></html>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>LOG (ocaml.CamlinternalMenhirLib.EngineTypes.LOG)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » <a href="../../index.html">CamlinternalMenhirLib</a> » <a href="../index.html">EngineTypes</a> » LOG</nav><header class="odoc-preamble"><h1>Module type <code><span>EngineTypes.LOG</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-state"><a href="#type-state" class="anchor"></a><code><span><span class="keyword">type</span> state</span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-terminal"><a href="#type-terminal" class="anchor"></a><code><span><span class="keyword">type</span> terminal</span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-production"><a href="#type-production" class="anchor"></a><code><span><span class="keyword">type</span> production</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-state"><a href="#val-state" class="anchor"></a><code><span><span class="keyword">val</span> state : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-shift"><a href="#val-shift" class="anchor"></a><code><span><span class="keyword">val</span> shift : <span><a href="#type-terminal">terminal</a> <span class="arrow">-></span></span> <span><a href="#type-state">state</a> <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-reduce_or_accept"><a href="#val-reduce_or_accept" class="anchor"></a><code><span><span class="keyword">val</span> reduce_or_accept : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-lookahead_token"><a href="#val-lookahead_token" class="anchor"></a><code><span><span class="keyword">val</span> lookahead_token :
|
||||
<span><a href="#type-terminal">terminal</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../../../Stdlib/Lexing/index.html#type-position">Stdlib.Lexing.position</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../../../Stdlib/Lexing/index.html#type-position">Stdlib.Lexing.position</a> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-initiating_error_handling"><a href="#val-initiating_error_handling" class="anchor"></a><code><span><span class="keyword">val</span> initiating_error_handling : <span>unit <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-resuming_error_handling"><a href="#val-resuming_error_handling" class="anchor"></a><code><span><span class="keyword">val</span> resuming_error_handling : <span>unit <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-handling_error"><a href="#val-handling_error" class="anchor"></a><code><span><span class="keyword">val</span> handling_error : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html>
|
||||
|
|
@ -12,6 +12,10 @@
|
|||
<span><span>(<span><span class="type-var">'env</span> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <span class="type-var">'answer</span>)</span> <span class="arrow">-></span></span>
|
||||
<span><span>(<span><span class="type-var">'env</span> <span class="arrow">-></span></span> <span class="type-var">'answer</span>)</span> <span class="arrow">-></span></span>
|
||||
<span><span class="type-var">'env</span> <span class="arrow">-></span></span>
|
||||
<span class="type-var">'answer</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_nt"><a href="#val-goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_prod"><a href="#val-goto_prod" class="anchor"></a><code><span><span class="keyword">val</span> goto_prod : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-maybe_goto_nt"><a href="#val-maybe_goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> maybe_goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <span><a href="#type-state">state</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-is_start"><a href="#val-is_start" class="anchor"></a><code><span><span class="keyword">val</span> is_start : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></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></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-semantic_action"><a href="#type-semantic_action" class="anchor"></a><code><span><span class="keyword">type</span> semantic_action</span><span> =
|
||||
<span class="type-var">'answer</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-maybe_shift_t"><a href="#val-maybe_shift_t" class="anchor"></a><code><span><span class="keyword">val</span> maybe_shift_t : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-terminal">terminal</a> <span class="arrow">-></span></span> <span><a href="#type-state">state</a> option</span></span></code></div><div class="spec-doc"><p><code>maybe_shift_t s t</code> determines whether there exists a transition out of the state <code>s</code>, labeled with the terminal symbol <code>t</code>, to some state <code>s'</code>. If so, it returns <code>Some s'</code>. Otherwise, it returns <code>None</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-may_reduce_prod"><a href="#val-may_reduce_prod" class="anchor"></a><code><span><span class="keyword">val</span> may_reduce_prod : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-terminal">terminal</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></div><div class="spec-doc"><p><code>may_reduce_prod s t prod</code> determines whether in the state <code>s</code>, with lookahead symbol <code>t</code>, the automaton reduces production <code>prod</code>. This test accounts for the possible existence of a default reduction.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_nt"><a href="#val-goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_prod"><a href="#val-goto_prod" class="anchor"></a><code><span><span class="keyword">val</span> goto_prod : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-maybe_goto_nt"><a href="#val-maybe_goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> maybe_goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <span><a href="#type-state">state</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-lhs"><a href="#val-lhs" class="anchor"></a><code><span><span class="keyword">val</span> lhs : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-nonterminal">nonterminal</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-is_start"><a href="#val-is_start" class="anchor"></a><code><span><span class="keyword">val</span> is_start : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></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></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-semantic_action"><a href="#type-semantic_action" class="anchor"></a><code><span><span class="keyword">type</span> semantic_action</span><span> =
|
||||
<span><span><span>(<a href="#type-state">state</a>, <a href="#type-semantic_value">semantic_value</a>, <a href="#type-token">token</a>)</span> <a href="../index.html#type-env">env</a></span> <span class="arrow">-></span></span>
|
||||
<span><span>(<a href="#type-state">state</a>, <a href="#type-semantic_value">semantic_value</a>)</span> <a href="../index.html#type-stack">stack</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-semantic_action"><a href="#val-semantic_action" class="anchor"></a><code><span><span class="keyword">val</span> semantic_action : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-semantic_action">semantic_action</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-may_reduce"><a href="#val-may_reduce" class="anchor"></a><code><span><span class="keyword">val</span> may_reduce : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-log"><a href="#val-log" class="anchor"></a><code><span><span class="keyword">val</span> log : bool</span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Log"><a href="#module-Log" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Log/index.html">Log</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div></div></body></html>
|
||||
<span><span>(<a href="#type-state">state</a>, <a href="#type-semantic_value">semantic_value</a>)</span> <a href="../index.html#type-stack">stack</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-semantic_action"><a href="#val-semantic_action" class="anchor"></a><code><span><span class="keyword">val</span> semantic_action : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-semantic_action">semantic_action</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-may_reduce"><a href="#val-may_reduce" class="anchor"></a><code><span><span class="keyword">val</span> may_reduce : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-log"><a href="#val-log" class="anchor"></a><code><span><span class="keyword">val</span> log : bool</span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Log"><a href="#module-Log" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Log/index.html">Log</a></span><span> :
|
||||
<a href="../module-type-LOG/index.html">LOG</a>
|
||||
<span class="keyword">with</span> <span><span class="keyword">type</span> <a href="../module-type-LOG/index.html#type-state">state</a> := <a href="#type-state">state</a></span>
|
||||
<span class="keyword">and</span> <span><span class="keyword">type</span> <a href="../module-type-LOG/index.html#type-terminal">terminal</a> := <a href="#type-terminal">terminal</a></span>
|
||||
<span class="keyword">and</span> <span><span class="keyword">type</span> <a href="../module-type-LOG/index.html#type-production">production</a> := <a href="#type-production">production</a></span></span></code></div></div></div></body></html>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,10 @@
|
|||
<span><span>(<span><span class="type-var">'env</span> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <span class="type-var">'answer</span>)</span> <span class="arrow">-></span></span>
|
||||
<span><span>(<span><span class="type-var">'env</span> <span class="arrow">-></span></span> <span class="type-var">'answer</span>)</span> <span class="arrow">-></span></span>
|
||||
<span><span class="type-var">'env</span> <span class="arrow">-></span></span>
|
||||
<span class="type-var">'answer</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_nt"><a href="#val-goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_prod"><a href="#val-goto_prod" class="anchor"></a><code><span><span class="keyword">val</span> goto_prod : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-maybe_goto_nt"><a href="#val-maybe_goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> maybe_goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <span><a href="#type-state">state</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-is_start"><a href="#val-is_start" class="anchor"></a><code><span><span class="keyword">val</span> is_start : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></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></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-semantic_action"><a href="#type-semantic_action" class="anchor"></a><code><span><span class="keyword">type</span> semantic_action</span><span> =
|
||||
<span class="type-var">'answer</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-maybe_shift_t"><a href="#val-maybe_shift_t" class="anchor"></a><code><span><span class="keyword">val</span> maybe_shift_t : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-terminal">terminal</a> <span class="arrow">-></span></span> <span><a href="#type-state">state</a> option</span></span></code></div><div class="spec-doc"><p><code>maybe_shift_t s t</code> determines whether there exists a transition out of the state <code>s</code>, labeled with the terminal symbol <code>t</code>, to some state <code>s'</code>. If so, it returns <code>Some s'</code>. Otherwise, it returns <code>None</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-may_reduce_prod"><a href="#val-may_reduce_prod" class="anchor"></a><code><span><span class="keyword">val</span> may_reduce_prod : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-terminal">terminal</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></div><div class="spec-doc"><p><code>may_reduce_prod s t prod</code> determines whether in the state <code>s</code>, with lookahead symbol <code>t</code>, the automaton reduces production <code>prod</code>. This test accounts for the possible existence of a default reduction.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_nt"><a href="#val-goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_prod"><a href="#val-goto_prod" class="anchor"></a><code><span><span class="keyword">val</span> goto_prod : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-maybe_goto_nt"><a href="#val-maybe_goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> maybe_goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <span><a href="#type-state">state</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-lhs"><a href="#val-lhs" class="anchor"></a><code><span><span class="keyword">val</span> lhs : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-nonterminal">nonterminal</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-is_start"><a href="#val-is_start" class="anchor"></a><code><span><span class="keyword">val</span> is_start : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></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></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-semantic_action"><a href="#type-semantic_action" class="anchor"></a><code><span><span class="keyword">type</span> semantic_action</span><span> =
|
||||
<span><span><span>(<a href="#type-state">state</a>, <a href="#type-semantic_value">semantic_value</a>, <a href="#type-token">token</a>)</span> <a href="../../../EngineTypes/index.html#type-env">EngineTypes.env</a></span> <span class="arrow">-></span></span>
|
||||
<span><span>(<a href="#type-state">state</a>, <a href="#type-semantic_value">semantic_value</a>)</span> <a href="../../../EngineTypes/index.html#type-stack">EngineTypes.stack</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-semantic_action"><a href="#val-semantic_action" class="anchor"></a><code><span><span class="keyword">val</span> semantic_action : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-semantic_action">semantic_action</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-may_reduce"><a href="#val-may_reduce" class="anchor"></a><code><span><span class="keyword">val</span> may_reduce : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-log"><a href="#val-log" class="anchor"></a><code><span><span class="keyword">val</span> log : bool</span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Log"><a href="#module-Log" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Log/index.html">Log</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div></div></body></html>
|
||||
<span><span>(<a href="#type-state">state</a>, <a href="#type-semantic_value">semantic_value</a>)</span> <a href="../../../EngineTypes/index.html#type-stack">EngineTypes.stack</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-semantic_action"><a href="#val-semantic_action" class="anchor"></a><code><span><span class="keyword">val</span> semantic_action : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-semantic_action">semantic_action</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-may_reduce"><a href="#val-may_reduce" class="anchor"></a><code><span><span class="keyword">val</span> may_reduce : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-log"><a href="#val-log" class="anchor"></a><code><span><span class="keyword">val</span> log : bool</span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Log"><a href="#module-Log" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Log/index.html">Log</a></span><span> :
|
||||
<a href="../../../EngineTypes/module-type-LOG/index.html">EngineTypes.LOG</a>
|
||||
<span class="keyword">with</span> <span><span class="keyword">type</span> <a href="../../../EngineTypes/module-type-LOG/index.html#type-state">state</a> := <a href="#type-state">state</a></span>
|
||||
<span class="keyword">and</span> <span><span class="keyword">type</span> <a href="../../../EngineTypes/module-type-LOG/index.html#type-terminal">terminal</a> := <a href="#type-terminal">terminal</a></span>
|
||||
<span class="keyword">and</span> <span><span class="keyword">type</span> <a href="../../../EngineTypes/module-type-LOG/index.html#type-production">production</a> := <a href="#type-production">production</a></span></span></code></div></div></div></body></html>
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>LexerUtil (ocaml.CamlinternalMenhirLib.LexerUtil)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » <a href="../index.html">CamlinternalMenhirLib</a> » LexerUtil</nav><header class="odoc-preamble"><h1>Module <code><span>CamlinternalMenhirLib.LexerUtil</span></code></h1></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>string <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="../../Stdlib/Lexing/index.html#type-lexbuf">Stdlib.Lexing.lexbuf</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-read"><a href="#val-read" class="anchor"></a><code><span><span class="keyword">val</span> read : <span>string <span class="arrow">-></span></span> string * <a href="../../Stdlib/Lexing/index.html#type-lexbuf">Stdlib.Lexing.lexbuf</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-newline"><a href="#val-newline" class="anchor"></a><code><span><span class="keyword">val</span> newline : <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 value anchored" id="val-range"><a href="#val-range" class="anchor"></a><code><span><span class="keyword">val</span> range : <span><span>(<a href="../../Stdlib/Lexing/index.html#type-position">Stdlib.Lexing.position</a> * <a href="../../Stdlib/Lexing/index.html#type-position">Stdlib.Lexing.position</a>)</span> <span class="arrow">-></span></span> string</span></code></div></div></div></body></html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>LexerUtil (ocaml.CamlinternalMenhirLib.LexerUtil)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » <a href="../index.html">CamlinternalMenhirLib</a> » LexerUtil</nav><header class="odoc-preamble"><h1>Module <code><span>CamlinternalMenhirLib.LexerUtil</span></code></h1></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>string <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="../../Stdlib/Lexing/index.html#type-lexbuf">Stdlib.Lexing.lexbuf</a></span></code></div><div class="spec-doc"><p><code>init filename lexbuf</code> initializes the lexing buffer <code>lexbuf</code> so that the positions that are subsequently read from it refer to the file <code>filename</code>. It returns <code>lexbuf</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-read"><a href="#val-read" class="anchor"></a><code><span><span class="keyword">val</span> read : <span>string <span class="arrow">-></span></span> string * <a href="../../Stdlib/Lexing/index.html#type-lexbuf">Stdlib.Lexing.lexbuf</a></span></code></div><div class="spec-doc"><p><code>read filename</code> reads the entire contents of the file <code>filename</code> and returns a pair of this content (a string) and a lexing buffer that has been initialized, based on this string.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-newline"><a href="#val-newline" class="anchor"></a><code><span><span class="keyword">val</span> newline : <span><a href="../../Stdlib/Lexing/index.html#type-lexbuf">Stdlib.Lexing.lexbuf</a> <span class="arrow">-></span></span> unit</span></code></div><div class="spec-doc"><p><code>newline lexbuf</code> increments the line counter stored within <code>lexbuf</code>. It should be invoked by the lexer itself every time a newline character is consumed. This allows maintaining a current the line number in <code>lexbuf</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-range"><a href="#val-range" class="anchor"></a><code><span><span class="keyword">val</span> range : <span><span>(<a href="../../Stdlib/Lexing/index.html#type-position">Stdlib.Lexing.position</a> * <a href="../../Stdlib/Lexing/index.html#type-position">Stdlib.Lexing.position</a>)</span> <span class="arrow">-></span></span> string</span></code></div><div class="spec-doc"><p><code>range (startpos, endpos)</code> prints a textual description of the range delimited by the start and end positions <code>startpos</code> and <code>endpos</code>. This description is one line long and ends in a newline character. This description mentions the file name, the line number, and a range of characters on this line. The line number is correct only if <code>newline</code> has been correctly used, as described dabove.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-tabulate"><a href="#val-tabulate" class="anchor"></a><code><span><span class="keyword">val</span> tabulate : <span><span>(<span><span class="type-var">'a</span> <span class="arrow">-></span></span> bool)</span> <span class="arrow">-></span></span> <span><span>(<span>unit <span class="arrow">-></span></span> <span class="type-var">'a</span>)</span> <span class="arrow">-></span></span> <span>unit <span class="arrow">-></span></span> <span class="type-var">'a</span></span></code></div><div class="spec-doc"><p><code>tabulate is_eof lexer</code> tabulates the lexer <code>lexer</code>: that is, it immediately runs this lexer all the way until an EOF token is found, stores the tokens in an array in memory, and returns a new lexer which (when invoked) reads tokens from this array. The function <code>lexer</code> is not allowed to raise an exception, and must produce a finite stream of tokens: that is, after a finite number of invocations, it must return a token that is identified by the function <code>is_eof</code> as an EOF token.</p><p>Both the existing lexer <code>lexer</code> and the new lexer returned by <code>tabulate
|
||||
is_eof lexer</code> are functions of type <code>unit -> 'a</code>, where the type <code>'a</code> is likely to be instantiated with a triple of a token and two positions, as per the revised lexer API described in the module <a href="../Convert/index.html"><code>Convert</code></a>.</p></div></div></div></body></html>
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>StaticVersion (ocaml.CamlinternalMenhirLib.StaticVersion)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » <a href="../index.html">CamlinternalMenhirLib</a> » StaticVersion</nav><header class="odoc-preamble"><h1>Module <code><span>CamlinternalMenhirLib.StaticVersion</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-require_20210419"><a href="#val-require_20210419" class="anchor"></a><code><span><span class="keyword">val</span> require_20210419 : unit</span></code></div></div></div></body></html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>StaticVersion (ocaml.CamlinternalMenhirLib.StaticVersion)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » <a href="../index.html">CamlinternalMenhirLib</a> » StaticVersion</nav><header class="odoc-preamble"><h1>Module <code><span>CamlinternalMenhirLib.StaticVersion</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-require_20231231"><a href="#val-require_20231231" class="anchor"></a><code><span><span class="keyword">val</span> require_20231231 : unit</span></code></div></div></div></body></html>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,10 @@
|
|||
<span><span>(<span><span class="type-var">'env</span> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <span class="type-var">'answer</span>)</span> <span class="arrow">-></span></span>
|
||||
<span><span>(<span><span class="type-var">'env</span> <span class="arrow">-></span></span> <span class="type-var">'answer</span>)</span> <span class="arrow">-></span></span>
|
||||
<span><span class="type-var">'env</span> <span class="arrow">-></span></span>
|
||||
<span class="type-var">'answer</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_nt"><a href="#val-goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_prod"><a href="#val-goto_prod" class="anchor"></a><code><span><span class="keyword">val</span> goto_prod : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-maybe_goto_nt"><a href="#val-maybe_goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> maybe_goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <span><a href="#type-state">state</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-is_start"><a href="#val-is_start" class="anchor"></a><code><span><span class="keyword">val</span> is_start : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></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></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-semantic_action"><a href="#type-semantic_action" class="anchor"></a><code><span><span class="keyword">type</span> semantic_action</span><span> =
|
||||
<span class="type-var">'answer</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-maybe_shift_t"><a href="#val-maybe_shift_t" class="anchor"></a><code><span><span class="keyword">val</span> maybe_shift_t : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-terminal">terminal</a> <span class="arrow">-></span></span> <span><a href="#type-state">state</a> option</span></span></code></div><div class="spec-doc"><p><code>maybe_shift_t s t</code> determines whether there exists a transition out of the state <code>s</code>, labeled with the terminal symbol <code>t</code>, to some state <code>s'</code>. If so, it returns <code>Some s'</code>. Otherwise, it returns <code>None</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-may_reduce_prod"><a href="#val-may_reduce_prod" class="anchor"></a><code><span><span class="keyword">val</span> may_reduce_prod : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-terminal">terminal</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></div><div class="spec-doc"><p><code>may_reduce_prod s t prod</code> determines whether in the state <code>s</code>, with lookahead symbol <code>t</code>, the automaton reduces production <code>prod</code>. This test accounts for the possible existence of a default reduction.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_nt"><a href="#val-goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-goto_prod"><a href="#val-goto_prod" class="anchor"></a><code><span><span class="keyword">val</span> goto_prod : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-state">state</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-maybe_goto_nt"><a href="#val-maybe_goto_nt" class="anchor"></a><code><span><span class="keyword">val</span> maybe_goto_nt : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-nonterminal">nonterminal</a> <span class="arrow">-></span></span> <span><a href="#type-state">state</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-lhs"><a href="#val-lhs" class="anchor"></a><code><span><span class="keyword">val</span> lhs : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-nonterminal">nonterminal</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-is_start"><a href="#val-is_start" class="anchor"></a><code><span><span class="keyword">val</span> is_start : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></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></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-semantic_action"><a href="#type-semantic_action" class="anchor"></a><code><span><span class="keyword">type</span> semantic_action</span><span> =
|
||||
<span><span><span>(<a href="#type-state">state</a>, <a href="#type-semantic_value">semantic_value</a>, <a href="#type-token">token</a>)</span> <a href="../../EngineTypes/index.html#type-env">EngineTypes.env</a></span> <span class="arrow">-></span></span>
|
||||
<span><span>(<a href="#type-state">state</a>, <a href="#type-semantic_value">semantic_value</a>)</span> <a href="../../EngineTypes/index.html#type-stack">EngineTypes.stack</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-semantic_action"><a href="#val-semantic_action" class="anchor"></a><code><span><span class="keyword">val</span> semantic_action : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-semantic_action">semantic_action</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-may_reduce"><a href="#val-may_reduce" class="anchor"></a><code><span><span class="keyword">val</span> may_reduce : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-log"><a href="#val-log" class="anchor"></a><code><span><span class="keyword">val</span> log : bool</span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Log"><a href="#module-Log" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Log/index.html">Log</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div></div></body></html>
|
||||
<span><span>(<a href="#type-state">state</a>, <a href="#type-semantic_value">semantic_value</a>)</span> <a href="../../EngineTypes/index.html#type-stack">EngineTypes.stack</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-semantic_action"><a href="#val-semantic_action" class="anchor"></a><code><span><span class="keyword">val</span> semantic_action : <span><a href="#type-production">production</a> <span class="arrow">-></span></span> <a href="#type-semantic_action">semantic_action</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-may_reduce"><a href="#val-may_reduce" class="anchor"></a><code><span><span class="keyword">val</span> may_reduce : <span><a href="#type-state">state</a> <span class="arrow">-></span></span> <span><a href="#type-production">production</a> <span class="arrow">-></span></span> bool</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-log"><a href="#val-log" class="anchor"></a><code><span><span class="keyword">val</span> log : bool</span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Log"><a href="#module-Log" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Log/index.html">Log</a></span><span> :
|
||||
<a href="../../EngineTypes/module-type-LOG/index.html">EngineTypes.LOG</a>
|
||||
<span class="keyword">with</span> <span><span class="keyword">type</span> <a href="../../EngineTypes/module-type-LOG/index.html#type-state">state</a> := <a href="#type-state">state</a></span>
|
||||
<span class="keyword">and</span> <span><span class="keyword">type</span> <a href="../../EngineTypes/module-type-LOG/index.html#type-terminal">terminal</a> := <a href="#type-terminal">terminal</a></span>
|
||||
<span class="keyword">and</span> <span><span class="keyword">type</span> <a href="../../EngineTypes/module-type-LOG/index.html#type-production">production</a> := <a href="#type-production">production</a></span></span></code></div></div></div></body></html>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -4,4 +4,4 @@
|
|||
<span><span class="optlabel">?opt</span>:string <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?stable_name</span>:string <span class="arrow">-></span></span>
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
int</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-create_archive"><a href="#val-create_archive" class="anchor"></a><code><span><span class="keyword">val</span> create_archive : <span>string <span class="arrow">-></span></span> <span><span>string list</span> <span class="arrow">-></span></span> int</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-quote_files"><a href="#val-quote_files" class="anchor"></a><code><span><span class="keyword">val</span> quote_files : <span><span class="label">response_files</span>:bool <span class="arrow">-></span></span> <span><span>string list</span> <span class="arrow">-></span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-quote_optfile"><a href="#val-quote_optfile" class="anchor"></a><code><span><span class="keyword">val</span> quote_optfile : <span><span>string option</span> <span class="arrow">-></span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-link_mode"><a href="#type-link_mode" class="anchor"></a><code><span><span class="keyword">type</span> link_mode</span><span> = </span></code><ol><li id="type-link_mode.Exe" class="def variant constructor anchored"><a href="#type-link_mode.Exe" class="anchor"></a><code><span>| </span><span><span class="constructor">Exe</span></span></code></li><li id="type-link_mode.Dll" class="def variant constructor anchored"><a href="#type-link_mode.Dll" class="anchor"></a><code><span>| </span><span><span class="constructor">Dll</span></span></code></li><li id="type-link_mode.MainDll" class="def variant constructor anchored"><a href="#type-link_mode.MainDll" class="anchor"></a><code><span>| </span><span><span class="constructor">MainDll</span></span></code></li><li id="type-link_mode.Partial" class="def variant constructor anchored"><a href="#type-link_mode.Partial" class="anchor"></a><code><span>| </span><span><span class="constructor">Partial</span></span></code></li></ol></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-call_linker"><a href="#val-call_linker" class="anchor"></a><code><span><span class="keyword">val</span> call_linker : <span><a href="#type-link_mode">link_mode</a> <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> <span><span>string list</span> <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> int</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-linker_is_flexlink"><a href="#val-linker_is_flexlink" class="anchor"></a><code><span><span class="keyword">val</span> linker_is_flexlink : bool</span></code></div></div></div></body></html>
|
||||
int</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-create_archive"><a href="#val-create_archive" class="anchor"></a><code><span><span class="keyword">val</span> create_archive : <span>string <span class="arrow">-></span></span> <span><span>string list</span> <span class="arrow">-></span></span> int</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-quote_files"><a href="#val-quote_files" class="anchor"></a><code><span><span class="keyword">val</span> quote_files : <span><span class="label">response_files</span>:bool <span class="arrow">-></span></span> <span><span>string list</span> <span class="arrow">-></span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-quote_optfile"><a href="#val-quote_optfile" class="anchor"></a><code><span><span class="keyword">val</span> quote_optfile : <span><span>string option</span> <span class="arrow">-></span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-link_mode"><a href="#type-link_mode" class="anchor"></a><code><span><span class="keyword">type</span> link_mode</span><span> = </span></code><ol><li id="type-link_mode.Exe" class="def variant constructor anchored"><a href="#type-link_mode.Exe" class="anchor"></a><code><span>| </span><span><span class="constructor">Exe</span></span></code></li><li id="type-link_mode.Dll" class="def variant constructor anchored"><a href="#type-link_mode.Dll" class="anchor"></a><code><span>| </span><span><span class="constructor">Dll</span></span></code></li><li id="type-link_mode.MainDll" class="def variant constructor anchored"><a href="#type-link_mode.MainDll" class="anchor"></a><code><span>| </span><span><span class="constructor">MainDll</span></span></code></li><li id="type-link_mode.Partial" class="def variant constructor anchored"><a href="#type-link_mode.Partial" class="anchor"></a><code><span>| </span><span><span class="constructor">Partial</span></span></code></li></ol></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-call_linker"><a href="#val-call_linker" class="anchor"></a><code><span><span class="keyword">val</span> call_linker : <span><a href="#type-link_mode">link_mode</a> <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> <span><span>string list</span> <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> int</span></code></div></div></div></body></html>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* <a href="#type-ulambda">ulambda</a>
|
||||
* <a href="#type-ulambda">ulambda</a></span></code></li><li id="type-ulambda.Uphantom_let" class="def variant constructor anchored"><a href="#type-ulambda.Uphantom_let" class="anchor"></a><code><span>| </span><span><span class="constructor">Uphantom_let</span> <span class="keyword">of</span> <a href="../Backend_var/With_provenance/index.html#type-t">Backend_var.With_provenance.t</a>
|
||||
* <span><a href="#type-uphantom_defining_expr">uphantom_defining_expr</a> option</span>
|
||||
* <a href="#type-ulambda">ulambda</a></span></code></li><li id="type-ulambda.Uletrec" class="def variant constructor anchored"><a href="#type-ulambda.Uletrec" class="anchor"></a><code><span>| </span><span><span class="constructor">Uletrec</span> <span class="keyword">of</span> <span><span>(<a href="../Backend_var/With_provenance/index.html#type-t">Backend_var.With_provenance.t</a> * <a href="#type-ulambda">ulambda</a>)</span> list</span> * <a href="#type-ulambda">ulambda</a></span></code></li><li id="type-ulambda.Uprim" class="def variant constructor anchored"><a href="#type-ulambda.Uprim" class="anchor"></a><code><span>| </span><span><span class="constructor">Uprim</span> <span class="keyword">of</span> <a href="../Clambda_primitives/index.html#type-primitive">Clambda_primitives.primitive</a> * <span><a href="#type-ulambda">ulambda</a> list</span> * <a href="../Debuginfo/index.html#type-t">Debuginfo.t</a></span></code></li><li id="type-ulambda.Uswitch" class="def variant constructor anchored"><a href="#type-ulambda.Uswitch" class="anchor"></a><code><span>| </span><span><span class="constructor">Uswitch</span> <span class="keyword">of</span> <a href="#type-ulambda">ulambda</a> * <a href="#type-ulambda_switch">ulambda_switch</a> * <a href="../Debuginfo/index.html#type-t">Debuginfo.t</a></span></code></li><li id="type-ulambda.Ustringswitch" class="def variant constructor anchored"><a href="#type-ulambda.Ustringswitch" class="anchor"></a><code><span>| </span><span><span class="constructor">Ustringswitch</span> <span class="keyword">of</span> <a href="#type-ulambda">ulambda</a> * <span><span>(string * <a href="#type-ulambda">ulambda</a>)</span> list</span> * <span><a href="#type-ulambda">ulambda</a> option</span></span></code></li><li id="type-ulambda.Ustaticfail" class="def variant constructor anchored"><a href="#type-ulambda.Ustaticfail" class="anchor"></a><code><span>| </span><span><span class="constructor">Ustaticfail</span> <span class="keyword">of</span> int * <span><a href="#type-ulambda">ulambda</a> list</span></span></code></li><li id="type-ulambda.Ucatch" class="def variant constructor anchored"><a href="#type-ulambda.Ucatch" class="anchor"></a><code><span>| </span><span><span class="constructor">Ucatch</span> <span class="keyword">of</span> int
|
||||
* <a href="#type-ulambda">ulambda</a></span></code></li><li id="type-ulambda.Uprim" class="def variant constructor anchored"><a href="#type-ulambda.Uprim" class="anchor"></a><code><span>| </span><span><span class="constructor">Uprim</span> <span class="keyword">of</span> <a href="../Clambda_primitives/index.html#type-primitive">Clambda_primitives.primitive</a> * <span><a href="#type-ulambda">ulambda</a> list</span> * <a href="../Debuginfo/index.html#type-t">Debuginfo.t</a></span></code></li><li id="type-ulambda.Uswitch" class="def variant constructor anchored"><a href="#type-ulambda.Uswitch" class="anchor"></a><code><span>| </span><span><span class="constructor">Uswitch</span> <span class="keyword">of</span> <a href="#type-ulambda">ulambda</a> * <a href="#type-ulambda_switch">ulambda_switch</a> * <a href="../Debuginfo/index.html#type-t">Debuginfo.t</a></span></code></li><li id="type-ulambda.Ustringswitch" class="def variant constructor anchored"><a href="#type-ulambda.Ustringswitch" class="anchor"></a><code><span>| </span><span><span class="constructor">Ustringswitch</span> <span class="keyword">of</span> <a href="#type-ulambda">ulambda</a> * <span><span>(string * <a href="#type-ulambda">ulambda</a>)</span> list</span> * <span><a href="#type-ulambda">ulambda</a> option</span></span></code></li><li id="type-ulambda.Ustaticfail" class="def variant constructor anchored"><a href="#type-ulambda.Ustaticfail" class="anchor"></a><code><span>| </span><span><span class="constructor">Ustaticfail</span> <span class="keyword">of</span> int * <span><a href="#type-ulambda">ulambda</a> list</span></span></code></li><li id="type-ulambda.Ucatch" class="def variant constructor anchored"><a href="#type-ulambda.Ucatch" class="anchor"></a><code><span>| </span><span><span class="constructor">Ucatch</span> <span class="keyword">of</span> int
|
||||
* <span><span>(<a href="../Backend_var/With_provenance/index.html#type-t">Backend_var.With_provenance.t</a> * <a href="../Lambda/index.html#type-value_kind">Lambda.value_kind</a>)</span> list</span>
|
||||
* <a href="#type-ulambda">ulambda</a>
|
||||
* <a href="#type-ulambda">ulambda</a></span></code></li><li id="type-ulambda.Utrywith" class="def variant constructor anchored"><a href="#type-ulambda.Utrywith" class="anchor"></a><code><span>| </span><span><span class="constructor">Utrywith</span> <span class="keyword">of</span> <a href="#type-ulambda">ulambda</a> * <a href="../Backend_var/With_provenance/index.html#type-t">Backend_var.With_provenance.t</a> * <a href="#type-ulambda">ulambda</a></span></code></li><li id="type-ulambda.Uifthenelse" class="def variant constructor anchored"><a href="#type-ulambda.Uifthenelse" class="anchor"></a><code><span>| </span><span><span class="constructor">Uifthenelse</span> <span class="keyword">of</span> <a href="#type-ulambda">ulambda</a> * <a href="#type-ulambda">ulambda</a> * <a href="#type-ulambda">ulambda</a></span></code></li><li id="type-ulambda.Usequence" class="def variant constructor anchored"><a href="#type-ulambda.Usequence" class="anchor"></a><code><span>| </span><span><span class="constructor">Usequence</span> <span class="keyword">of</span> <a href="#type-ulambda">ulambda</a> * <a href="#type-ulambda">ulambda</a></span></code></li><li id="type-ulambda.Uwhile" class="def variant constructor anchored"><a href="#type-ulambda.Uwhile" class="anchor"></a><code><span>| </span><span><span class="constructor">Uwhile</span> <span class="keyword">of</span> <a href="#type-ulambda">ulambda</a> * <a href="#type-ulambda">ulambda</a></span></code></li><li id="type-ulambda.Ufor" class="def variant constructor anchored"><a href="#type-ulambda.Ufor" class="anchor"></a><code><span>| </span><span><span class="constructor">Ufor</span> <span class="keyword">of</span> <a href="../Backend_var/With_provenance/index.html#type-t">Backend_var.With_provenance.t</a>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -52,7 +52,7 @@
|
|||
<span><a href="../Debuginfo/index.html#type-t">Debuginfo.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Cmm/index.html#type-expression">Cmm.expression</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Cmm/index.html#type-expression">Cmm.expression</a> <span class="arrow">-></span></span>
|
||||
<a href="../Cmm/index.html#type-expression">Cmm.expression</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-create_loop"><a href="#val-create_loop" class="anchor"></a><code><span><span class="keyword">val</span> create_loop : <span><a href="../Cmm/index.html#type-expression">Cmm.expression</a> <span class="arrow">-></span></span> <span><a href="../Debuginfo/index.html#type-t">Debuginfo.t</a> <span class="arrow">-></span></span> <a href="../Cmm/index.html#type-expression">Cmm.expression</a></span></code></div><div class="spec-doc"><p>Loop construction (while true do expr done). Used to be represented as Cloop.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-raise_symbol"><a href="#val-raise_symbol" class="anchor"></a><code><span><span class="keyword">val</span> raise_symbol : <span><a href="../Debuginfo/index.html#type-t">Debuginfo.t</a> <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> <a href="../Cmm/index.html#type-expression">Cmm.expression</a></span></code></div><div class="spec-doc"><p>Exception raising</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-test_bool"><a href="#val-test_bool" class="anchor"></a><code><span><span class="keyword">val</span> test_bool : <span><a href="../Debuginfo/index.html#type-t">Debuginfo.t</a> <span class="arrow">-></span></span> <span><a href="../Cmm/index.html#type-expression">Cmm.expression</a> <span class="arrow">-></span></span> <a href="../Cmm/index.html#type-expression">Cmm.expression</a></span></code></div><div class="spec-doc"><p>Convert a tagged integer into a raw integer with boolean meaning</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-box_float"><a href="#val-box_float" class="anchor"></a><code><span><span class="keyword">val</span> box_float : <span><a href="../Debuginfo/index.html#type-t">Debuginfo.t</a> <span class="arrow">-></span></span> <span><a href="../Cmm/index.html#type-expression">Cmm.expression</a> <span class="arrow">-></span></span> <a href="../Cmm/index.html#type-expression">Cmm.expression</a></span></code></div><div class="spec-doc"><p>Float boxing and unboxing</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-unbox_float"><a href="#val-unbox_float" class="anchor"></a><code><span><span class="keyword">val</span> unbox_float : <span><a href="../Debuginfo/index.html#type-t">Debuginfo.t</a> <span class="arrow">-></span></span> <span><a href="../Cmm/index.html#type-expression">Cmm.expression</a> <span class="arrow">-></span></span> <a href="../Cmm/index.html#type-expression">Cmm.expression</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-box_complex"><a href="#val-box_complex" class="anchor"></a><code><span><span class="keyword">val</span> box_complex :
|
||||
<a href="../Cmm/index.html#type-expression">Cmm.expression</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-create_loop"><a href="#val-create_loop" class="anchor"></a><code><span><span class="keyword">val</span> create_loop : <span><a href="../Cmm/index.html#type-expression">Cmm.expression</a> <span class="arrow">-></span></span> <span><a href="../Debuginfo/index.html#type-t">Debuginfo.t</a> <span class="arrow">-></span></span> <a href="../Cmm/index.html#type-expression">Cmm.expression</a></span></code></div><div class="spec-doc"><p>Loop construction (while true do expr done). Used to be represented as Cloop.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-raise_symbol"><a href="#val-raise_symbol" class="anchor"></a><code><span><span class="keyword">val</span> raise_symbol : <span><a href="../Debuginfo/index.html#type-t">Debuginfo.t</a> <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> <a href="../Cmm/index.html#type-expression">Cmm.expression</a></span></code></div><div class="spec-doc"><p>Exception raising</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-test_bool"><a href="#val-test_bool" class="anchor"></a><code><span><span class="keyword">val</span> test_bool : <span><a href="../Debuginfo/index.html#type-t">Debuginfo.t</a> <span class="arrow">-></span></span> <span><a href="../Cmm/index.html#type-expression">Cmm.expression</a> <span class="arrow">-></span></span> <a href="../Cmm/index.html#type-expression">Cmm.expression</a></span></code></div><div class="spec-doc"><p>Convert a tagged integer into a raw integer with boolean meaning</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-box_float"><a href="#val-box_float" class="anchor"></a><code><span><span class="keyword">val</span> box_float : <span><a href="../Debuginfo/index.html#type-t">Debuginfo.t</a> <span class="arrow">-></span></span> <span><a href="../Cmm/index.html#type-expression">Cmm.expression</a> <span class="arrow">-></span></span> <a href="../Cmm/index.html#type-expression">Cmm.expression</a></span></code></div><div class="spec-doc"><p>Float boxing and unboxing</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-unbox_float"><a href="#val-unbox_float" class="anchor"></a><code><span><span class="keyword">val</span> unbox_float : <span><a href="../Debuginfo/index.html#type-t">Debuginfo.t</a> <span class="arrow">-></span></span> <span><a href="../Cmm/index.html#type-expression">Cmm.expression</a> <span class="arrow">-></span></span> <a href="../Cmm/index.html#type-expression">Cmm.expression</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-float_of_float16"><a href="#val-float_of_float16" class="anchor"></a><code><span><span class="keyword">val</span> float_of_float16 : <span><a href="../Debuginfo/index.html#type-t">Debuginfo.t</a> <span class="arrow">-></span></span> <span><a href="../Cmm/index.html#type-expression">Cmm.expression</a> <span class="arrow">-></span></span> <a href="../Cmm/index.html#type-expression">Cmm.expression</a></span></code></div><div class="spec-doc"><p>Conversions for 16-bit floats</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-float16_of_float"><a href="#val-float16_of_float" class="anchor"></a><code><span><span class="keyword">val</span> float16_of_float : <span><a href="../Debuginfo/index.html#type-t">Debuginfo.t</a> <span class="arrow">-></span></span> <span><a href="../Cmm/index.html#type-expression">Cmm.expression</a> <span class="arrow">-></span></span> <a href="../Cmm/index.html#type-expression">Cmm.expression</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-box_complex"><a href="#val-box_complex" class="anchor"></a><code><span><span class="keyword">val</span> box_complex :
|
||||
<span><a href="../Debuginfo/index.html#type-t">Debuginfo.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Cmm/index.html#type-expression">Cmm.expression</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Cmm/index.html#type-expression">Cmm.expression</a> <span class="arrow">-></span></span>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -4,4 +4,4 @@
|
|||
<span><span class="label">sourcefile</span>:<span>string option</span> <span class="arrow">-></span></span>
|
||||
<span><span class="label">use_summaries</span>:bool <span class="arrow">-></span></span>
|
||||
<span><a href="../Cmt_format/index.html#type-binary_annots">Cmt_format.binary_annots</a> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div></div></body></html>
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-iterator"><a href="#val-iterator" class="anchor"></a><code><span><span class="keyword">val</span> iterator : <span><span class="label">scope</span>:<a href="../Location/index.html#type-t">Location.t</a> <span class="arrow">-></span></span> <span>bool <span class="arrow">-></span></span> <a href="../Tast_iterator/index.html#type-iterator">Tast_iterator.iterator</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-binary_part"><a href="#val-binary_part" class="anchor"></a><code><span><span class="keyword">val</span> binary_part : <span><a href="../Tast_iterator/index.html#type-iterator">Tast_iterator.iterator</a> <span class="arrow">-></span></span> <span><a href="../Cmt_format/index.html#type-binary_part">Cmt_format.binary_part</a> <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,12 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Compile_common (ocaml.Compile_common)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Compile_common</nav><header class="odoc-preamble"><h1>Module <code><span>Compile_common</span></code></h1><p>Common compilation pipeline between bytecode and native.</p></header><nav class="odoc-toc"><ul><li><a href="#initialization">Initialization</a></li><li><a href="#interfaces">Interfaces</a></li><li><a href="#implementations">Implementations</a></li><li><a href="#build-artifacts">Build artifacts</a></li></ul></nav><div class="odoc-content"><h3 id="initialization"><a href="#initialization" class="anchor"></a>Initialization</h3><div class="odoc-spec"><div class="spec type anchored" id="type-info"><a href="#type-info" class="anchor"></a><code><span><span class="keyword">type</span> info</span><span> = </span><span>{</span></code><ol><li id="type-info.source_file" class="def record field anchored"><a href="#type-info.source_file" class="anchor"></a><code><span>source_file : string;</span></code></li><li id="type-info.module_name" class="def record field anchored"><a href="#type-info.module_name" class="anchor"></a><code><span>module_name : string;</span></code></li><li id="type-info.output_prefix" class="def record field anchored"><a href="#type-info.output_prefix" class="anchor"></a><code><span>output_prefix : string;</span></code></li><li id="type-info.env" class="def record field anchored"><a href="#type-info.env" class="anchor"></a><code><span>env : <a href="../Env/index.html#type-t">Env.t</a>;</span></code></li><li id="type-info.ppf_dump" class="def record field anchored"><a href="#type-info.ppf_dump" class="anchor"></a><code><span>ppf_dump : <a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a>;</span></code></li><li id="type-info.tool_name" class="def record field anchored"><a href="#type-info.tool_name" class="anchor"></a><code><span>tool_name : string;</span></code></li><li id="type-info.native" class="def record field anchored"><a href="#type-info.native" class="anchor"></a><code><span>native : bool;</span></code></li></ol><code><span>}</span></code></div><div class="spec-doc"><p>Information needed to compile a file.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-with_info"><a href="#val-with_info" class="anchor"></a><code><span><span class="keyword">val</span> with_info :
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Compile_common (ocaml.Compile_common)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Compile_common</nav><header class="odoc-preamble"><h1>Module <code><span>Compile_common</span></code></h1><p>Common compilation pipeline between bytecode and native.</p></header><nav class="odoc-toc"><ul><li><a href="#initialization">Initialization</a></li><li><a href="#interfaces">Interfaces</a></li><li><a href="#implementations">Implementations</a></li></ul></nav><div class="odoc-content"><h3 id="initialization"><a href="#initialization" class="anchor"></a>Initialization</h3><div class="odoc-spec"><div class="spec type anchored" id="type-info"><a href="#type-info" class="anchor"></a><code><span><span class="keyword">type</span> info</span><span> = </span><span>{</span></code><ol><li id="type-info.target" class="def record field anchored"><a href="#type-info.target" class="anchor"></a><code><span>target : <a href="../Unit_info/index.html#type-t">Unit_info.t</a>;</span></code></li><li id="type-info.env" class="def record field anchored"><a href="#type-info.env" class="anchor"></a><code><span>env : <a href="../Env/index.html#type-t">Env.t</a>;</span></code></li><li id="type-info.ppf_dump" class="def record field anchored"><a href="#type-info.ppf_dump" class="anchor"></a><code><span>ppf_dump : <a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a>;</span></code></li><li id="type-info.tool_name" class="def record field anchored"><a href="#type-info.tool_name" class="anchor"></a><code><span>tool_name : string;</span></code></li><li id="type-info.native" class="def record field anchored"><a href="#type-info.native" class="anchor"></a><code><span>native : bool;</span></code></li></ol><code><span>}</span></code></div><div class="spec-doc"><p>Information needed to compile a file.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-with_info"><a href="#val-with_info" class="anchor"></a><code><span><span class="keyword">val</span> with_info :
|
||||
<span><span class="label">native</span>:bool <span class="arrow">-></span></span>
|
||||
<span><span class="label">tool_name</span>:string <span class="arrow">-></span></span>
|
||||
<span><span class="label">source_file</span>:string <span class="arrow">-></span></span>
|
||||
<span><span class="label">output_prefix</span>:string <span class="arrow">-></span></span>
|
||||
<span><span class="label">dump_ext</span>:string <span class="arrow">-></span></span>
|
||||
<span><a href="../Unit_info/index.html#type-t">Unit_info.t</a> <span class="arrow">-></span></span>
|
||||
<span><span>(<span><a href="#type-info">info</a> <span class="arrow">-></span></span> <span class="type-var">'a</span>)</span> <span class="arrow">-></span></span>
|
||||
<span class="type-var">'a</span></span></code></div><div class="spec-doc"><p><code>with_info ~native ~tool_name ~source_file ~output_prefix ~dump_ext k</code> invokes its continuation <code>k</code> with an <code>info</code> structure built from its input, after initializing various global variables. This info structure and the initialized global state are not valid anymore after the continuation returns.</p><p>Due to current implementation limitations in the compiler, it is unsafe to try to compile several distinct compilation units by calling <code>with_info</code> several times.</p></div></div><h3 id="interfaces"><a href="#interfaces" class="anchor"></a>Interfaces</h3><div class="odoc-spec"><div class="spec value anchored" id="val-parse_intf"><a href="#val-parse_intf" class="anchor"></a><code><span><span class="keyword">val</span> parse_intf : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> <a href="../Parsetree/index.html#type-signature">Parsetree.signature</a></span></code></div><div class="spec-doc"><p><code>parse_intf info</code> parses an interface (usually an <code>.mli</code> file).</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-typecheck_intf"><a href="#val-typecheck_intf" class="anchor"></a><code><span><span class="keyword">val</span> typecheck_intf : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> <span><a href="../Parsetree/index.html#type-signature">Parsetree.signature</a> <span class="arrow">-></span></span> <a href="../Typedtree/index.html#type-signature">Typedtree.signature</a></span></code></div><div class="spec-doc"><p><code>typecheck_intf info parsetree</code> typechecks an interface and returns the typedtree of the associated signature.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-emit_signature"><a href="#val-emit_signature" class="anchor"></a><code><span><span class="keyword">val</span> emit_signature : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> <span><a href="../Parsetree/index.html#type-signature">Parsetree.signature</a> <span class="arrow">-></span></span> <span><a href="../Typedtree/index.html#type-signature">Typedtree.signature</a> <span class="arrow">-></span></span> unit</span></code></div><div class="spec-doc"><p><code>emit_signature info parsetree typedtree</code> emits the <code>.cmi</code> file containing the given signature.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-interface"><a href="#val-interface" class="anchor"></a><code><span><span class="keyword">val</span> interface : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> unit</span></code></div><div class="spec-doc"><p>The complete compilation pipeline for interfaces.</p></div></div><h3 id="implementations"><a href="#implementations" class="anchor"></a>Implementations</h3><div class="odoc-spec"><div class="spec value anchored" id="val-parse_impl"><a href="#val-parse_impl" class="anchor"></a><code><span><span class="keyword">val</span> parse_impl : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> <a href="../Parsetree/index.html#type-structure">Parsetree.structure</a></span></code></div><div class="spec-doc"><p><code>parse_impl info</code> parses an implementation (usually an <code>.ml</code> file).</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-typecheck_impl"><a href="#val-typecheck_impl" class="anchor"></a><code><span><span class="keyword">val</span> typecheck_impl : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> <span><a href="../Parsetree/index.html#type-structure">Parsetree.structure</a> <span class="arrow">-></span></span> <a href="../Typedtree/index.html#type-implementation">Typedtree.implementation</a></span></code></div><div class="spec-doc"><p><code>typecheck_impl info parsetree</code> typechecks an implementation and returns the typedtree of the associated module, its public interface, and a coercion against that public interface.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-implementation"><a href="#val-implementation" class="anchor"></a><code><span><span class="keyword">val</span> implementation :
|
||||
<span class="type-var">'a</span></span></code></div><div class="spec-doc"><p><code>with_info ~native ~tool_name ~dump_ext unit_info k</code> invokes its continuation <code>k</code> with an <code>info</code> structure passed as input, after initializing various global variables. This info structure and the initialized global state are not valid anymore after the continuation returns.</p><p>Due to current implementation limitations in the compiler, it is unsafe to try to compile several distinct compilation units by calling <code>with_info</code> several times.</p></div></div><h3 id="interfaces"><a href="#interfaces" class="anchor"></a>Interfaces</h3><div class="odoc-spec"><div class="spec value anchored" id="val-parse_intf"><a href="#val-parse_intf" class="anchor"></a><code><span><span class="keyword">val</span> parse_intf : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> <a href="../Parsetree/index.html#type-signature">Parsetree.signature</a></span></code></div><div class="spec-doc"><p><code>parse_intf info</code> parses an interface (usually an <code>.mli</code> file).</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-typecheck_intf"><a href="#val-typecheck_intf" class="anchor"></a><code><span><span class="keyword">val</span> typecheck_intf :
|
||||
<span><a href="#type-info">info</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Parsetree/index.html#type-signature">Parsetree.signature</a> <span class="arrow">-></span></span>
|
||||
<a href="../Misc/index.html#type-alerts">Misc.alerts</a> * <a href="../Typedtree/index.html#type-signature">Typedtree.signature</a></span></code></div><div class="spec-doc"><p><code>typecheck_intf info parsetree</code> typechecks an interface and returns the typedtree of the associated signature.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-emit_signature"><a href="#val-emit_signature" class="anchor"></a><code><span><span class="keyword">val</span> emit_signature : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> <span><a href="../Misc/index.html#type-alerts">Misc.alerts</a> <span class="arrow">-></span></span> <span><a href="../Typedtree/index.html#type-signature">Typedtree.signature</a> <span class="arrow">-></span></span> unit</span></code></div><div class="spec-doc"><p><code>emit_signature info parsetree typedtree</code> emits the <code>.cmi</code> file containing the given signature.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-interface"><a href="#val-interface" class="anchor"></a><code><span><span class="keyword">val</span> interface : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> unit</span></code></div><div class="spec-doc"><p>The complete compilation pipeline for interfaces.</p></div></div><h3 id="implementations"><a href="#implementations" class="anchor"></a>Implementations</h3><div class="odoc-spec"><div class="spec value anchored" id="val-parse_impl"><a href="#val-parse_impl" class="anchor"></a><code><span><span class="keyword">val</span> parse_impl : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> <a href="../Parsetree/index.html#type-structure">Parsetree.structure</a></span></code></div><div class="spec-doc"><p><code>parse_impl info</code> parses an implementation (usually an <code>.ml</code> file).</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-typecheck_impl"><a href="#val-typecheck_impl" class="anchor"></a><code><span><span class="keyword">val</span> typecheck_impl : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> <span><a href="../Parsetree/index.html#type-structure">Parsetree.structure</a> <span class="arrow">-></span></span> <a href="../Typedtree/index.html#type-implementation">Typedtree.implementation</a></span></code></div><div class="spec-doc"><p><code>typecheck_impl info parsetree</code> typechecks an implementation and returns the typedtree of the associated module, its public interface, and a coercion against that public interface.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-implementation"><a href="#val-implementation" class="anchor"></a><code><span><span class="keyword">val</span> implementation :
|
||||
<span><a href="#type-info">info</a> <span class="arrow">-></span></span>
|
||||
<span><span class="label">backend</span>:<span>(<span><a href="#type-info">info</a> <span class="arrow">-></span></span> <span><a href="../Typedtree/index.html#type-implementation">Typedtree.implementation</a> <span class="arrow">-></span></span> unit)</span> <span class="arrow">-></span></span>
|
||||
unit</span></code></div><div class="spec-doc"><p>The complete compilation pipeline for implementations.</p></div></div><h3 id="build-artifacts"><a href="#build-artifacts" class="anchor"></a>Build artifacts</h3><div class="odoc-spec"><div class="spec value anchored" id="val-cmo"><a href="#val-cmo" class="anchor"></a><code><span><span class="keyword">val</span> cmo : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-cmx"><a href="#val-cmx" class="anchor"></a><code><span><span class="keyword">val</span> cmx : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-obj"><a href="#val-obj" class="anchor"></a><code><span><span class="keyword">val</span> obj : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-annot"><a href="#val-annot" class="anchor"></a><code><span><span class="keyword">val</span> annot : <span><a href="#type-info">info</a> <span class="arrow">-></span></span> string</span></code></div><div class="spec-doc"><p>Return the filename of some compiler build artifacts associated with the file being compiled.</p></div></div></div></body></html>
|
||||
unit</span></code></div><div class="spec-doc"><p>The complete compilation pipeline for implementations.</p></div></div></div></body></html>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
ocaml/Ctype/Pattern_env/index.html
Normal file
2
ocaml/Ctype/Pattern_env/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Pattern_env (ocaml.Ctype.Pattern_env)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » <a href="../index.html">Ctype</a> » Pattern_env</nav><header class="odoc-preamble"><h1>Module <code><span>Ctype.Pattern_env</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> t</span><span> = <span class="keyword">private</span> </span><span>{</span></code><ol><li id="type-t.env" class="def record field anchored"><a href="#type-t.env" class="anchor"></a><code><span><span class="keyword">mutable</span> env : <a href="../../Env/index.html#type-t">Env.t</a>;</span></code></li><li id="type-t.equations_scope" class="def record field anchored"><a href="#type-t.equations_scope" class="anchor"></a><code><span>equations_scope : int;</span></code></li><li id="type-t.allow_recursive_equations" class="def record field anchored"><a href="#type-t.allow_recursive_equations" class="anchor"></a><code><span>allow_recursive_equations : bool;</span></code></li></ol><code><span>}</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-make"><a href="#val-make" class="anchor"></a><code><span><span class="keyword">val</span> make : <span><a href="../../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span> <span><span class="label">equations_scope</span>:int <span class="arrow">-></span></span> <span><span class="label">allow_recursive_equations</span>:bool <span class="arrow">-></span></span> <a href="#type-t">t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-copy"><a href="#val-copy" class="anchor"></a><code><span><span class="keyword">val</span> copy : <span><span class="optlabel">?equations_scope</span>:int <span class="arrow">-></span></span> <span><a href="#type-t">t</a> <span class="arrow">-></span></span> <a href="#type-t">t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-set_env"><a href="#val-set_env" class="anchor"></a><code><span><span class="keyword">val</span> set_env : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> <span><a href="../../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Datarepr (ocaml.Datarepr)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Datarepr</nav><header class="odoc-preamble"><h1>Module <code><span>Datarepr</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-extension_descr"><a href="#val-extension_descr" class="anchor"></a><code><span><span class="keyword">val</span> extension_descr :
|
||||
<span><span class="label">current_unit</span>:string <span class="arrow">-></span></span>
|
||||
<span><span class="label">current_unit</span>:<span><a href="../Unit_info/index.html#type-t">Unit_info.t</a> option</span> <span class="arrow">-></span></span>
|
||||
<span><a href="../Path/index.html#type-t">Path.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Types/index.html#type-extension_constructor">Types.extension_constructor</a> <span class="arrow">-></span></span>
|
||||
<a href="../Types/index.html#type-constructor_description">Types.constructor_description</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-labels_of_type"><a href="#val-labels_of_type" class="anchor"></a><code><span><span class="keyword">val</span> labels_of_type :
|
||||
<span><a href="../Path/index.html#type-t">Path.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Types/index.html#type-type_declaration">Types.type_declaration</a> <span class="arrow">-></span></span>
|
||||
<span><span>(<a href="../Ident/index.html#type-t">Ident.t</a> * <a href="../Types/index.html#type-label_description">Types.label_description</a>)</span> list</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-constructors_of_type"><a href="#val-constructors_of_type" class="anchor"></a><code><span><span class="keyword">val</span> constructors_of_type :
|
||||
<span><span class="label">current_unit</span>:string <span class="arrow">-></span></span>
|
||||
<span><span class="label">current_unit</span>:<span><a href="../Unit_info/index.html#type-t">Unit_info.t</a> option</span> <span class="arrow">-></span></span>
|
||||
<span><a href="../Path/index.html#type-t">Path.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Types/index.html#type-type_declaration">Types.type_declaration</a> <span class="arrow">-></span></span>
|
||||
<span><span>(<a href="../Ident/index.html#type-t">Ident.t</a> * <a href="../Types/index.html#type-constructor_description">Types.constructor_description</a>)</span> list</span></span></code></div></div><div class="odoc-spec"><div class="spec exception anchored" id="exception-Constr_not_found"><a href="#exception-Constr_not_found" class="anchor"></a><code><span><span class="keyword">exception</span> </span><span><span class="exception">Constr_not_found</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-find_constr_by_tag"><a href="#val-find_constr_by_tag" class="anchor"></a><code><span><span class="keyword">val</span> find_constr_by_tag :
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,14 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Emitcode (ocaml.Emitcode)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Emitcode</nav><header class="odoc-preamble"><h1>Module <code><span>Emitcode</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-to_file"><a href="#val-to_file" class="anchor"></a><code><span><span class="keyword">val</span> to_file :
|
||||
<span><a href="../Stdlib/index.html#type-out_channel">out_channel</a> <span class="arrow">-></span></span>
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<span><a href="../Unit_info/Artifact/index.html#type-t">Unit_info.Artifact.t</a> <span class="arrow">-></span></span>
|
||||
<span><span class="label">required_globals</span>:<a href="../Ident/Set/index.html#type-t">Ident.Set.t</a> <span class="arrow">-></span></span>
|
||||
<span><span><a href="../Instruct/index.html#type-instruction">Instruct.instruction</a> list</span> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-to_memory"><a href="#val-to_memory" class="anchor"></a><code><span><span class="keyword">val</span> to_memory :
|
||||
<span><span><a href="../Instruct/index.html#type-instruction">Instruct.instruction</a> list</span> <span class="arrow">-></span></span>
|
||||
<span><span><a href="../Instruct/index.html#type-instruction">Instruct.instruction</a> list</span> <span class="arrow">-></span></span>
|
||||
<a href="../Misc/LongString/index.html#type-t">Misc.LongString.t</a>
|
||||
<span><span>(char, <a href="../Stdlib/Bigarray/index.html#type-int8_unsigned_elt">Stdlib.Bigarray.int8_unsigned_elt</a>, <a href="../Stdlib/Bigarray/index.html#type-c_layout">Stdlib.Bigarray.c_layout</a>)</span>
|
||||
<a href="../Stdlib/Bigarray/Array1/index.html#type-t">Stdlib.Bigarray.Array1.t</a></span>
|
||||
* <span><span>(<a href="../Cmo_format/index.html#type-reloc_info">Cmo_format.reloc_info</a> * int)</span> list</span>
|
||||
* <span><a href="../Instruct/index.html#type-debug_event">Instruct.debug_event</a> list</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-to_packed_file"><a href="#val-to_packed_file" class="anchor"></a><code><span><span class="keyword">val</span> to_packed_file :
|
||||
<span><a href="../Stdlib/index.html#type-out_channel">out_channel</a> <span class="arrow">-></span></span>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Envaux (ocaml.Envaux)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Envaux</nav><header class="odoc-preamble"><h1>Module <code><span>Envaux</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-env_from_summary"><a href="#val-env_from_summary" class="anchor"></a><code><span><span class="keyword">val</span> env_from_summary : <span><a href="../Env/index.html#type-summary">Env.summary</a> <span class="arrow">-></span></span> <span><a href="../Subst/index.html#type-t">Subst.t</a> <span class="arrow">-></span></span> <a href="../Env/index.html#type-t">Env.t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-reset_cache"><a href="#val-reset_cache" class="anchor"></a><code><span><span class="keyword">val</span> reset_cache : <span>unit <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-env_of_only_summary"><a href="#val-env_of_only_summary" class="anchor"></a><code><span><span class="keyword">val</span> env_of_only_summary : <span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span> <a href="../Env/index.html#type-t">Env.t</a></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.Module_not_found" class="def variant constructor anchored"><a href="#type-error.Module_not_found" class="anchor"></a><code><span>| </span><span><span class="constructor">Module_not_found</span> <span class="keyword">of</span> <a href="../Path/index.html#type-t">Path.t</a></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></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span> <span><a href="#type-error">error</a> <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Envaux (ocaml.Envaux)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Envaux</nav><header class="odoc-preamble"><h1>Module <code><span>Envaux</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-env_from_summary"><a href="#val-env_from_summary" class="anchor"></a><code><span><span class="keyword">val</span> env_from_summary : <span><a href="../Env/index.html#type-summary">Env.summary</a> <span class="arrow">-></span></span> <span><a href="../Subst/index.html#type-t">Subst.t</a> <span class="arrow">-></span></span> <a href="../Env/index.html#type-t">Env.t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-reset_cache"><a href="#val-reset_cache" class="anchor"></a><code><span><span class="keyword">val</span> reset_cache : <span>unit <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-env_of_only_summary"><a href="#val-env_of_only_summary" class="anchor"></a><code><span><span class="keyword">val</span> env_of_only_summary : <span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span> <a href="../Env/index.html#type-t">Env.t</a></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.Module_not_found" class="def variant constructor anchored"><a href="#type-error.Module_not_found" class="anchor"></a><code><span>| </span><span><span class="constructor">Module_not_found</span> <span class="keyword">of</span> <a href="../Path/index.html#type-t">Path.t</a></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></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-format_printer">Format_doc.format_printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error_doc"><a href="#val-report_error_doc" class="anchor"></a><code><span><span class="keyword">val</span> report_error_doc : <span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div></div></body></html>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
43
ocaml/Errortrace_report/index.html
Normal file
43
ocaml/Errortrace_report/index.html
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Errortrace_report (ocaml.Errortrace_report)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Errortrace_report</nav><header class="odoc-preamble"><h1>Module <code><span>Errortrace_report</span></code></h1><p>Functions for reporting core level type errors.</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-ambiguous_type"><a href="#val-ambiguous_type" class="anchor"></a><code><span><span class="keyword">val</span> ambiguous_type :
|
||||
<span><a href="../Format_doc/index.html#type-formatter">Format_doc.formatter</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||||
<span><span>(<a href="../Path/index.html#type-t">Path.t</a> * <a href="../Path/index.html#type-t">Path.t</a>)</span> <span class="arrow">-></span></span>
|
||||
<span><span><span>(<a href="../Path/index.html#type-t">Path.t</a> * <a href="../Path/index.html#type-t">Path.t</a>)</span> list</span> <span class="arrow">-></span></span>
|
||||
<span><a href="../Format_doc/index.html#type-t">Format_doc.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Format_doc/index.html#type-t">Format_doc.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Format_doc/index.html#type-t">Format_doc.t</a> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-unification"><a href="#val-unification" class="anchor"></a><code><span><span class="keyword">val</span> unification :
|
||||
<span><a href="../Format_doc/index.html#type-formatter">Format_doc.formatter</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Errortrace/index.html#type-unification_error">Errortrace.unification_error</a> <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?type_expected_explanation</span>:<a href="../Format_doc/index.html#type-t">Format_doc.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Format_doc/index.html#type-t">Format_doc.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Format_doc/index.html#type-t">Format_doc.t</a> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-equality"><a href="#val-equality" class="anchor"></a><code><span><span class="keyword">val</span> equality :
|
||||
<span><a href="../Format_doc/index.html#type-formatter">Format_doc.formatter</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Out_type/index.html#type-type_or_scheme">Out_type.type_or_scheme</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Errortrace/index.html#type-equality_error">Errortrace.equality_error</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Format_doc/index.html#type-t">Format_doc.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Format_doc/index.html#type-t">Format_doc.t</a> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-moregen"><a href="#val-moregen" class="anchor"></a><code><span><span class="keyword">val</span> moregen :
|
||||
<span><a href="../Format_doc/index.html#type-formatter">Format_doc.formatter</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Out_type/index.html#type-type_or_scheme">Out_type.type_or_scheme</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Errortrace/index.html#type-moregen_error">Errortrace.moregen_error</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Format_doc/index.html#type-t">Format_doc.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Format_doc/index.html#type-t">Format_doc.t</a> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-comparison"><a href="#val-comparison" class="anchor"></a><code><span><span class="keyword">val</span> comparison :
|
||||
<span><a href="../Format_doc/index.html#type-formatter">Format_doc.formatter</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Out_type/index.html#type-type_or_scheme">Out_type.type_or_scheme</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Errortrace/index.html#type-comparison_error">Errortrace.comparison_error</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Format_doc/index.html#type-t">Format_doc.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Format_doc/index.html#type-t">Format_doc.t</a> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-subtype"><a href="#val-subtype" class="anchor"></a><code><span><span class="keyword">val</span> subtype :
|
||||
<span><a href="../Format_doc/index.html#type-formatter">Format_doc.formatter</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Errortrace/Subtype/index.html#type-error">Errortrace.Subtype.error</a> <span class="arrow">-></span></span>
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div></div></body></html>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -25,10 +25,10 @@
|
|||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-iter_on_set_of_closures_of_program"><a href="#val-iter_on_set_of_closures_of_program" class="anchor"></a><code><span><span class="keyword">val</span> iter_on_set_of_closures_of_program :
|
||||
<span><a href="../Flambda/index.html#type-program">Flambda.program</a> <span class="arrow">-></span></span>
|
||||
<span><span class="label">f</span>:<span>(<span><span class="label">constant</span>:bool <span class="arrow">-></span></span> <span><a href="../Flambda/index.html#type-set_of_closures">Flambda.set_of_closures</a> <span class="arrow">-></span></span> unit)</span> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-iter_all_immutable_let_and_let_rec_bindings"><a href="#val-iter_all_immutable_let_and_let_rec_bindings" class="anchor"></a><code><span><span class="keyword">val</span> iter_all_immutable_let_and_let_rec_bindings :
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-iter_all_immutable_let_bindings"><a href="#val-iter_all_immutable_let_bindings" class="anchor"></a><code><span><span class="keyword">val</span> iter_all_immutable_let_bindings :
|
||||
<span><a href="../Flambda/index.html#type-t">Flambda.t</a> <span class="arrow">-></span></span>
|
||||
<span><span class="label">f</span>:<span>(<span><a href="../Variable/index.html#type-t">Variable.t</a> <span class="arrow">-></span></span> <span><a href="../Flambda/index.html#type-named">Flambda.named</a> <span class="arrow">-></span></span> unit)</span> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-iter_all_toplevel_immutable_let_and_let_rec_bindings"><a href="#val-iter_all_toplevel_immutable_let_and_let_rec_bindings" class="anchor"></a><code><span><span class="keyword">val</span> iter_all_toplevel_immutable_let_and_let_rec_bindings :
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-iter_all_toplevel_immutable_let_bindings"><a href="#val-iter_all_toplevel_immutable_let_bindings" class="anchor"></a><code><span><span class="keyword">val</span> iter_all_toplevel_immutable_let_bindings :
|
||||
<span><a href="../Flambda/index.html#type-t">Flambda.t</a> <span class="arrow">-></span></span>
|
||||
<span><span class="label">f</span>:<span>(<span><a href="../Variable/index.html#type-t">Variable.t</a> <span class="arrow">-></span></span> <span><a href="../Flambda/index.html#type-named">Flambda.named</a> <span class="arrow">-></span></span> unit)</span> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-iter_exprs_at_toplevel_of_program"><a href="#val-iter_exprs_at_toplevel_of_program" class="anchor"></a><code><span><span class="keyword">val</span> iter_exprs_at_toplevel_of_program :
|
||||
|
|
|
|||
9
ocaml/Format_doc/Doc/index.html
Normal file
9
ocaml/Format_doc/Doc/index.html
Normal file
File diff suppressed because one or more lines are too long
44
ocaml/Format_doc/index.html
Normal file
44
ocaml/Format_doc/index.html
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
ocaml/Gprinttyp/Decoration/index.html
Normal file
2
ocaml/Gprinttyp/Decoration/index.html
Normal file
File diff suppressed because one or more lines are too long
103
ocaml/Gprinttyp/index.html
Normal file
103
ocaml/Gprinttyp/index.html
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Gprinttyp (ocaml.Gprinttyp)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Gprinttyp</nav><header class="odoc-preamble"><h1>Module <code><span>Gprinttyp</span></code></h1><p>This module provides function for printing type expressions as digraph using graphviz format. This is mostly aimed at providing a better representation of type expressions during debugging session.</p></header><nav class="odoc-toc"><ul><li><a href="#digraph-construction-and-printing">Digraph construction and printing</a></li><li><a href="#debugging-helper-functions">Debugging helper functions</a><ul><li><a href="#generic-print-debugging-function">Generic print debugging function</a></li><li><a href="#node-tracking-functions">Node tracking functions</a></li></ul></li></ul></nav><div class="odoc-content"><p>A type node is printed as</p><pre class="language-ocaml"><code>.------------.
|
||||
| <desc> id |---->
|
||||
| |--->
|
||||
.------------.</code></pre><p>where the description part might be:</p><ul><li>a path: <code>list/8!</code></li><li>a type variable: <code>'name</code>, <code>α</code>, <code>β</code>, <code>γ</code></li><li><code>*</code> for tuples</li><li><code>→</code> for arrows type</li><li>an universal type variable: <code>[β]∀</code>, <code>'name ∀</code>, ...</li><li><code>[mod X with ...]</code> for a first class module</li></ul><ul><li><code>∀</code> for a universal type binder</li></ul><p>The more complex encoding for polymorphic variants and object types uses nodes as head of the subgraph representing those types</p><ul><li><code>[obj...]</code> for the head of an object subgraph</li><li><code>[Nil]</code> for the end of an object subgraph</li><li><code>[Row...]</code> for the head of a polymorphic variant subgraph</li></ul><ul><li><code>[Subst]</code> for a temporary substitution node</li></ul><p>Then each nodes is relied by arrows to any of its children types.</p><ul><li>Type variables, universal type variables, <code>Nil</code>, and <code>Subst</code> nodes don't have children.</li></ul><ul><li><p>For tuples, the children types are the elements of the tuple. For instance, <code>int * float</code> is represented as</p><pre class="language-ocaml"><code>.------. 0 .-------.
|
||||
| * 1 |-------->| int! 2|
|
||||
.------. .-------.
|
||||
|
|
||||
| 1
|
||||
v
|
||||
.----------.
|
||||
| float! 3 |
|
||||
.----------.</code></pre></li></ul><ul><li><p>For arrows, the children types are the type of the argument and the result type. For instance, for <code>int -> float</code>:</p><pre class="language-ocaml"><code>.------. 0 .-------.
|
||||
| → 4 |-------->| int! 2|
|
||||
.------. .-------.
|
||||
|
|
||||
| 1
|
||||
v
|
||||
.----------.
|
||||
| float! 3 |
|
||||
.----------.</code></pre></li></ul><ul><li>For type constructor, like list the main children nodes are the argument types. For instance, <code>(int,float) result</code> is represented as:</li></ul><pre class="language-ocaml"><code>.-------------. 0 .-------.
|
||||
| Result.t 5 |-------->| int! 2|
|
||||
.-------------. .-------.
|
||||
|
|
||||
| 1
|
||||
v
|
||||
.----------.
|
||||
| float! 3 |
|
||||
.----------.</code></pre><p>Moreover, type abbreviations might be linked to the expanded nodes. If I define: <code>type 'a pair = 'a * 'a</code>, a type expression <code>int pair</code> might correspond to the nodes:</p><pre class="language-ocaml"><code>.--------. 0 .--------.
|
||||
| pair 6 |------> | int! 2 |
|
||||
.--------. .--------.
|
||||
┆ ^
|
||||
┆ expand |
|
||||
┆ |
|
||||
.------. 0 + 1 |
|
||||
| * 7 |------>-------.
|
||||
.------.</code></pre><ul><li><p>Universal type binders have two kind of children: bound variables, and the main body. For instance, <code>'a. 'a -> 'a</code> is represented as</p><pre class="language-ocaml"><code>.------. bind .-------.
|
||||
| ∀ 8 |----------> | 𝛼 10 |
|
||||
.------. .------.
|
||||
| ^
|
||||
| |
|
||||
v |
|
||||
.------. 0 + 1 |
|
||||
| → 9 |------>-------.
|
||||
.------.</code></pre></li></ul><ul><li><code>[Subst]</code> node are children are the type graph guarded by the substitution node, and an eventual link to the parent row variable.</li></ul><ul><li><p>The children of first-class modules are the type expressions that may appear in the right hand side of constraints. For instance, <code>module M with type t = 'a and type u = 'b</code> is represented as</p><pre class="language-ocaml"><code>.----------------------. 0 .-----.
|
||||
| [mod M with t, u] 11 |-------->| 𝛼 12|
|
||||
.----------------------. .-----
|
||||
|
|
||||
| 1
|
||||
v
|
||||
.------.
|
||||
| 𝛽 13 |
|
||||
.------.</code></pre></li></ul><ul><li>The children of <code>obj</code> (resp. <code>row</code>) are the methods (resp. constructor) of the object type (resp. polymorphic variant). Each method is then linked to its type. To make them easier to read they are grouped inside graphviz cluster. For instance, <code><a:int; m:'self; ..> as 'self</code> will be represented as:</li></ul><pre class="language-ocaml"><code>.----------------.
|
||||
| .----------. |
|
||||
| | [obj] 14 |<------<-----<-----.
|
||||
| .----------. | |
|
||||
| ┆ | |
|
||||
| .-------------. | .------. | .-------.
|
||||
| | a public 15 |----->| ∀ 18 |----->| int! 2 |
|
||||
| .-------------. | .------. | .-------.
|
||||
| ┆ | |
|
||||
| .-------------. | .------. |
|
||||
| | m public 16 |-----| ∀ 19 |>--|
|
||||
| .------------. | .------.
|
||||
| ┆ |
|
||||
| ┆ row var |
|
||||
| ┆ |
|
||||
| .-------. |
|
||||
| | '_ 17 | |
|
||||
| .-------. |
|
||||
.-----------------.</code></pre><div class="odoc-spec"><div class="spec type anchored" id="type-digraph"><a href="#type-digraph" class="anchor"></a><code><span><span class="keyword">type</span> digraph</span></code></div><div class="spec-doc"><p>Digraph with nodes, edges, hyperedges and subgraphes</p></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-params"><a href="#type-params" class="anchor"></a><code><span><span class="keyword">type</span> params</span></code></div><div class="spec-doc"><p>Various possible choices on how to represent types, see the <a href="#val-params"><code>params</code></a> functions for more detail.</p></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-element"><a href="#type-element" class="anchor"></a><code><span><span class="keyword">type</span> element</span></code></div><div class="spec-doc"><p>Graph element, see the <a href="#val-node"><code>node</code></a>, <a href="#val-edge"><code>edge</code></a> and <a href="#val-hyperedge"><code>hyperedge</code></a> function</p></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-decoration"><a href="#type-decoration" class="anchor"></a><code><span><span class="keyword">type</span> decoration</span></code></div><div class="spec-doc"><p>Visual decoration on graph elements, see the <a href="Decoration/index.html"><code>Decoration</code></a> module.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-types"><a href="#val-types" class="anchor"></a><code><span><span class="keyword">val</span> types :
|
||||
<span><span class="label">title</span>:string <span class="arrow">-></span></span>
|
||||
<span><a href="#type-params">params</a> <span class="arrow">-></span></span>
|
||||
<span><span><span>(<a href="#type-decoration">decoration</a> * <a href="../Types/index.html#type-type_expr">Types.type_expr</a>)</span> list</span> <span class="arrow">-></span></span>
|
||||
unit</span></code></div><div class="spec-doc"><p>Print a graph to the file <code>asprintf "%s/%04d-%s-%a.dot"
|
||||
dump_dir
|
||||
session_unique_id
|
||||
title
|
||||
pp_context context
|
||||
</code></p><p>If the <code>dump_dir</code> flag is not set, the local directory is used. See the <a href="#type-context"><code>context</code></a> type on how and why to setup the context.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-nodes"><a href="#val-nodes" class="anchor"></a><code><span><span class="keyword">val</span> nodes : <span><span class="label">title</span>:string <span class="arrow">-></span></span> <span><a href="#type-params">params</a> <span class="arrow">-></span></span> <span><span><span>(<a href="#type-decoration">decoration</a> * <a href="#type-element">element</a>)</span> list</span> <span class="arrow">-></span></span> unit</span></code></div><div class="spec-doc"><p>Full version of <a href="#val-types"><code>types</code></a> that allow to print any kind of graph element</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-params"><a href="#val-params" class="anchor"></a><code><span><span class="keyword">val</span> params :
|
||||
<span><span class="optlabel">?elide_links</span>:bool <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?expansion_as_hyperedge</span>:bool <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?short_ids</span>:bool <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?colorize</span>:bool <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?follow_expansions</span>:bool <span class="arrow">-></span></span>
|
||||
<span>unit <span class="arrow">-></span></span>
|
||||
<a href="#type-params">params</a></span></code></div><div class="spec-doc"><p>Choice of details for printing type graphes:</p><ul><li>if <code>elide_links</code> is <code>true</code> link nodes are not displayed (default:<code>true</code>)</li><li>with <code>expansion_as_hyperedge</code>, memoized constructor expansion are displayed as a hyperedge between the node storing the memoized expansion, the expanded node and the expansion (default:<code>false</code>).</li><li>with <code>short_ids</code>, we use an independent counter for node ids, in order to have shorter ids for small digraphs (default:<code>true</code>).</li><li>with <code>colorize</code> nodes are colorized according to their typechecker ids (default:<code>true</code>).</li><li>with <code>follow_expansions</code>, we add memoized type constructor expansions to the digraph (default:<code>true</code>).</li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-update_params"><a href="#val-update_params" class="anchor"></a><code><span><span class="keyword">val</span> update_params :
|
||||
<span><span class="optlabel">?elide_links</span>:bool <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?expansion_as_hyperedge</span>:bool <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?short_ids</span>:bool <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?colorize</span>:bool <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?follow_expansions</span>:bool <span class="arrow">-></span></span>
|
||||
<span><a href="#type-params">params</a> <span class="arrow">-></span></span>
|
||||
<a href="#type-params">params</a></span></code></div><div class="spec-doc"><p>Update an existing <code>params</code> with new values.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-node"><a href="#val-node" class="anchor"></a><code><span><span class="keyword">val</span> node : <span><a href="../Types/index.html#type-type_expr">Types.type_expr</a> <span class="arrow">-></span></span> <a href="#type-element">element</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-edge"><a href="#val-edge" class="anchor"></a><code><span><span class="keyword">val</span> edge : <span><a href="../Types/index.html#type-type_expr">Types.type_expr</a> <span class="arrow">-></span></span> <span><a href="../Types/index.html#type-type_expr">Types.type_expr</a> <span class="arrow">-></span></span> <a href="#type-element">element</a></span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-dir"><a href="#type-dir" class="anchor"></a><code><span><span class="keyword">type</span> dir</span><span> = </span></code><ol><li id="type-dir.Toward" class="def variant constructor anchored"><a href="#type-dir.Toward" class="anchor"></a><code><span>| </span><span><span class="constructor">Toward</span></span></code></li><li id="type-dir.From" class="def variant constructor anchored"><a href="#type-dir.From" class="anchor"></a><code><span>| </span><span><span class="constructor">From</span></span></code></li></ol></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-hyperedge"><a href="#val-hyperedge" class="anchor"></a><code><span><span class="keyword">val</span> hyperedge : <span><span><span>(<a href="#type-dir">dir</a> * <a href="#type-decoration">decoration</a> * <a href="../Types/index.html#type-type_expr">Types.type_expr</a>)</span> list</span> <span class="arrow">-></span></span> <a href="#type-element">element</a></span></code></div><div class="spec-doc"><p>Edges between more than two elements.</p></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Decoration"><a href="#module-Decoration" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Decoration/index.html">Decoration</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div><h2 id="digraph-construction-and-printing"><a href="#digraph-construction-and-printing" class="anchor"></a>Digraph construction and printing</h2><div class="odoc-spec"><div class="spec value anchored" id="val-make"><a href="#val-make" class="anchor"></a><code><span><span class="keyword">val</span> make : <span><a href="#type-params">params</a> <span class="arrow">-></span></span> <span><span><span>(<a href="#type-decoration">decoration</a> * <a href="#type-element">element</a>)</span> list</span> <span class="arrow">-></span></span> <a href="#type-digraph">digraph</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-add"><a href="#val-add" class="anchor"></a><code><span><span class="keyword">val</span> add : <span><a href="#type-params">params</a> <span class="arrow">-></span></span> <span><span><span>(<a href="#type-decoration">decoration</a> * <a href="#type-element">element</a>)</span> list</span> <span class="arrow">-></span></span> <span><a href="#type-digraph">digraph</a> <span class="arrow">-></span></span> <a href="#type-digraph">digraph</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-add_subgraph"><a href="#val-add_subgraph" class="anchor"></a><code><span><span class="keyword">val</span> add_subgraph :
|
||||
<span><a href="#type-params">params</a> <span class="arrow">-></span></span>
|
||||
<span><a href="#type-decoration">decoration</a> <span class="arrow">-></span></span>
|
||||
<span><span><span>(<a href="#type-decoration">decoration</a> * <a href="#type-element">element</a>)</span> list</span> <span class="arrow">-></span></span>
|
||||
<span><a href="#type-digraph">digraph</a> <span class="arrow">-></span></span>
|
||||
<a href="#type-digraph">digraph</a></span></code></div><div class="spec-doc"><p>add a subgraph to a digraph, only fresh nodes are added to the subgraph</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-group_nodes"><a href="#val-group_nodes" class="anchor"></a><code><span><span class="keyword">val</span> group_nodes : <span><span>(<a href="#type-decoration">decoration</a> * <a href="#type-digraph">digraph</a>)</span> <span class="arrow">-></span></span> <span><a href="#type-digraph">digraph</a> <span class="arrow">-></span></span> <a href="#type-digraph">digraph</a></span></code></div><div class="spec-doc"><p>groups existing nodes inside a subgraph</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-pp"><a href="#val-pp" class="anchor"></a><code><span><span class="keyword">val</span> pp : <span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span> <span><a href="#type-digraph">digraph</a> <span class="arrow">-></span></span> unit</span></code></div></div><h2 id="debugging-helper-functions"><a href="#debugging-helper-functions" class="anchor"></a>Debugging helper functions</h2><h3 id="generic-print-debugging-function"><a href="#generic-print-debugging-function" class="anchor"></a>Generic print debugging function</h3><div class="odoc-spec"><div class="spec value anchored" id="val-debug_on"><a href="#val-debug_on" class="anchor"></a><code><span><span class="keyword">val</span> debug_on : <span><span>(<span>unit <span class="arrow">-></span></span> bool)</span> <a href="../Stdlib/index.html#type-ref">ref</a></span></span></code></div><div class="spec-doc"><p>Conditional graph printing</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-debug_off"><a href="#val-debug_off" class="anchor"></a><code><span><span class="keyword">val</span> debug_off : <span><span>(<span>unit <span class="arrow">-></span></span> <span class="type-var">'a</span>)</span> <span class="arrow">-></span></span> <span class="type-var">'a</span></span></code></div><div class="spec-doc"><p><code>debug_off f</code> switches off debugging before running <code>f</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-debug"><a href="#val-debug" class="anchor"></a><code><span><span class="keyword">val</span> debug : <span><span>(<span>unit <span class="arrow">-></span></span> unit)</span> <span class="arrow">-></span></span> unit</span></code></div><div class="spec-doc"><p><code>debug f</code> runs <code>f</code> when <code>!debug_on ()</code></p></div></div><h3 id="node-tracking-functions"><a href="#node-tracking-functions" class="anchor"></a>Node tracking functions</h3><div class="odoc-spec"><div class="spec value anchored" id="val-register_type"><a href="#val-register_type" class="anchor"></a><code><span><span class="keyword">val</span> register_type : <span><span>(<a href="#type-decoration">decoration</a> * <a href="../Types/index.html#type-type_expr">Types.type_expr</a>)</span> <span class="arrow">-></span></span> unit</span></code></div><div class="spec-doc"><p><code>register_type (lbl,ty)</code> adds the type <code>t</code> to all graph printed until <a href="#val-forget"><code>forget</code></a> is called</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-register_subgraph"><a href="#val-register_subgraph" class="anchor"></a><code><span><span class="keyword">val</span> register_subgraph :
|
||||
<span><a href="#type-params">params</a> <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?decoration</span>:<a href="#type-decoration">decoration</a> <span class="arrow">-></span></span>
|
||||
<span><span><a href="../Types/index.html#type-type_expr">Types.type_expr</a> list</span> <span class="arrow">-></span></span>
|
||||
unit</span></code></div><div class="spec-doc"><p><code>register_subgraph params tys</code> groups together all types reachable from <code>tys</code> at this point in printed digraphs, until <a href="#val-forget"><code>forget</code></a> is called</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-forget"><a href="#val-forget" class="anchor"></a><code><span><span class="keyword">val</span> forget : <span>unit <span class="arrow">-></span></span> unit</span></code></div><div class="spec-doc"><p>Forget all recorded context types</p></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-context"><a href="#type-context" class="anchor"></a><code><span><span class="keyword">type</span> <span>'a context</span></span></code></div><div class="spec-doc"><p>Contextual information</p><p>Those functions can be used to modify the filename of the generated digraphs. Use those functions to provide contextual information on a graph emitted during an execution trace.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-global"><a href="#val-global" class="anchor"></a><code><span><span class="keyword">val</span> global : <span>string <a href="#type-context">context</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-loc"><a href="#val-loc" class="anchor"></a><code><span><span class="keyword">val</span> loc : <span><a href="../Warnings/index.html#type-loc">Warnings.loc</a> <a href="#type-context">context</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-set_context"><a href="#val-set_context" class="anchor"></a><code><span><span class="keyword">val</span> set_context : <span><span><span class="type-var">'a</span> <a href="#type-context">context</a></span> <span class="arrow">-></span></span> <span><span class="type-var">'a</span> <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-with_context"><a href="#val-with_context" class="anchor"></a><code><span><span class="keyword">val</span> with_context : <span><span><span class="type-var">'a</span> <a href="#type-context">context</a></span> <span class="arrow">-></span></span> <span><span class="type-var">'a</span> <span class="arrow">-></span></span> <span><span>(<span>unit <span class="arrow">-></span></span> <span class="type-var">'b</span>)</span> <span class="arrow">-></span></span> <span class="type-var">'b</span></span></code></div></div></div></body></html>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -13,7 +13,7 @@
|
|||
<span><a href="../Types/index.html#type-class_declaration">Types.class_declaration</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Types/index.html#type-class_declaration">Types.class_declaration</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Ctype/index.html#type-class_match_failure">Ctype.class_match_failure</a> list</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error :
|
||||
<span><a href="../Printtyp/index.html#type-type_or_scheme">Printtyp.type_or_scheme</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span>
|
||||
<span><span><a href="../Ctype/index.html#type-class_match_failure">Ctype.class_match_failure</a> list</span> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div></div></body></html>
|
||||
<span><a href="../Out_type/index.html#type-type_or_scheme">Out_type.type_or_scheme</a> <span class="arrow">-></span></span>
|
||||
<span><span><a href="../Ctype/index.html#type-class_match_failure">Ctype.class_match_failure</a> list</span> <a href="../Format_doc/index.html#type-format_printer">Format_doc.format_printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error_doc"><a href="#val-report_error_doc" class="anchor"></a><code><span><span class="keyword">val</span> report_error_doc :
|
||||
<span><a href="../Out_type/index.html#type-type_or_scheme">Out_type.type_or_scheme</a> <span class="arrow">-></span></span>
|
||||
<span><span><a href="../Ctype/index.html#type-class_match_failure">Ctype.class_match_failure</a> list</span> <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div></div></body></html>
|
||||
|
|
|
|||
|
|
@ -28,24 +28,27 @@
|
|||
<span><a href="../Ident/index.html#type-t">Ident.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Types/index.html#type-extension_constructor">Types.extension_constructor</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Types/index.html#type-extension_constructor">Types.extension_constructor</a> <span class="arrow">-></span></span>
|
||||
<span><a href="#type-extension_constructor_mismatch">extension_constructor_mismatch</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_value_mismatch"><a href="#val-report_value_mismatch" class="anchor"></a><code><span><span class="keyword">val</span> report_value_mismatch :
|
||||
<span><a href="#type-extension_constructor_mismatch">extension_constructor_mismatch</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-value_descriptions_consistency"><a href="#val-value_descriptions_consistency" class="anchor"></a><code><span><span class="keyword">val</span> value_descriptions_consistency :
|
||||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Types/index.html#type-value_description">Types.value_description</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Types/index.html#type-value_description">Types.value_description</a> <span class="arrow">-></span></span>
|
||||
<a href="../Typedtree/index.html#type-module_coercion">Typedtree.module_coercion</a></span></code></div><div class="spec-doc"><p>The functions <code>value_descriptions_consistency</code> and <code>type_declarations_consistency</code> check if two declaration are consistent. Declarations are consistent when there exists an environment such that the first declaration is a subtype of the second one.</p><p>Notably, if a type declaration <code>td1</code> is consistent with <code>td2</code> then a type expression <code>te</code> which is well-formed with the <code>td2</code> declaration in scope is still well-formed with the <code>td1</code> declaration: <code>E, td2 |- te</code> => <code>E, td1
|
||||
|- te</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-type_declarations_consistency"><a href="#val-type_declarations_consistency" class="anchor"></a><code><span><span class="keyword">val</span> type_declarations_consistency :
|
||||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Types/index.html#type-type_declaration">Types.type_declaration</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Types/index.html#type-type_declaration">Types.type_declaration</a> <span class="arrow">-></span></span>
|
||||
<span><a href="#type-type_mismatch">type_mismatch</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_value_mismatch"><a href="#val-report_value_mismatch" class="anchor"></a><code><span><span class="keyword">val</span> report_value_mismatch :
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span>
|
||||
<span><a href="#type-value_mismatch">value_mismatch</a> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_type_mismatch"><a href="#val-report_type_mismatch" class="anchor"></a><code><span><span class="keyword">val</span> report_type_mismatch :
|
||||
<span><a href="#type-value_mismatch">value_mismatch</a> <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_type_mismatch"><a href="#val-report_type_mismatch" class="anchor"></a><code><span><span class="keyword">val</span> report_type_mismatch :
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span>
|
||||
<span><a href="#type-type_mismatch">type_mismatch</a> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_extension_constructor_mismatch"><a href="#val-report_extension_constructor_mismatch" class="anchor"></a><code><span><span class="keyword">val</span> report_extension_constructor_mismatch :
|
||||
<span><a href="#type-type_mismatch">type_mismatch</a> <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_extension_constructor_mismatch"><a href="#val-report_extension_constructor_mismatch" class="anchor"></a><code><span><span class="keyword">val</span> report_extension_constructor_mismatch :
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<span>string <span class="arrow">-></span></span>
|
||||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span>
|
||||
<span><a href="#type-extension_constructor_mismatch">extension_constructor_mismatch</a> <span class="arrow">-></span></span>
|
||||
unit</span></code></div></div></div></body></html>
|
||||
<span><a href="#type-extension_constructor_mismatch">extension_constructor_mismatch</a> <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div></div></body></html>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Includemod_errorprinter (ocaml.Includemod_errorprinter)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Includemod_errorprinter</nav><header class="odoc-preamble"><h1>Module <code><span>Includemod_errorprinter</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-err_msgs"><a href="#val-err_msgs" class="anchor"></a><code><span><span class="keyword">val</span> err_msgs : <span><a href="../Includemod/index.html#type-explanation">Includemod.explanation</a> <span class="arrow">-></span></span> <span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-register"><a href="#val-register" class="anchor"></a><code><span><span class="keyword">val</span> register : <span>unit <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Includemod_errorprinter (ocaml.Includemod_errorprinter)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Includemod_errorprinter</nav><header class="odoc-preamble"><h1>Module <code><span>Includemod_errorprinter</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-err_msgs"><a href="#val-err_msgs" class="anchor"></a><code><span><span class="keyword">val</span> err_msgs : <span><a href="../Includemod/index.html#type-explanation">Includemod.explanation</a> <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-coercion_in_package_subtype"><a href="#val-coercion_in_package_subtype" class="anchor"></a><code><span><span class="keyword">val</span> coercion_in_package_subtype :
|
||||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Types/index.html#type-module_type">Types.module_type</a> <span class="arrow">-></span></span>
|
||||
<span><a href="../Typedtree/index.html#type-module_coercion">Typedtree.module_coercion</a> <span class="arrow">-></span></span>
|
||||
<a href="../Format_doc/index.html#type-doc">Format_doc.doc</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-register"><a href="#val-register" class="anchor"></a><code><span><span class="keyword">val</span> register : <span>unit <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -4,4 +4,4 @@
|
|||
<span><span><a href="../Reg/index.html#type-t">Reg.t</a> array</span> <span class="arrow">-></span></span>
|
||||
<span><span><a href="../Reg/index.html#type-t">Reg.t</a> array</span> <span class="arrow">-></span></span>
|
||||
<span><a href="#type-instruction">instruction</a> <span class="arrow">-></span></span>
|
||||
<a href="#type-instruction">instruction</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-invert_test"><a href="#val-invert_test" class="anchor"></a><code><span><span class="keyword">val</span> invert_test : <span><a href="../Mach/index.html#type-test">Mach.test</a> <span class="arrow">-></span></span> <a href="../Mach/index.html#type-test">Mach.test</a></span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-fundecl"><a href="#type-fundecl" class="anchor"></a><code><span><span class="keyword">type</span> fundecl</span><span> = </span><span>{</span></code><ol><li id="type-fundecl.fun_name" class="def record field anchored"><a href="#type-fundecl.fun_name" class="anchor"></a><code><span>fun_name : string;</span></code></li><li id="type-fundecl.fun_args" class="def record field anchored"><a href="#type-fundecl.fun_args" class="anchor"></a><code><span>fun_args : <a href="../Reg/Set/index.html#type-t">Reg.Set.t</a>;</span></code></li><li id="type-fundecl.fun_body" class="def record field anchored"><a href="#type-fundecl.fun_body" class="anchor"></a><code><span>fun_body : <a href="#type-instruction">instruction</a>;</span></code></li><li id="type-fundecl.fun_fast" class="def record field anchored"><a href="#type-fundecl.fun_fast" class="anchor"></a><code><span>fun_fast : bool;</span></code></li><li id="type-fundecl.fun_dbg" class="def record field anchored"><a href="#type-fundecl.fun_dbg" class="anchor"></a><code><span>fun_dbg : <a href="../Debuginfo/index.html#type-t">Debuginfo.t</a>;</span></code></li><li id="type-fundecl.fun_tailrec_entry_point_label" class="def record field anchored"><a href="#type-fundecl.fun_tailrec_entry_point_label" class="anchor"></a><code><span>fun_tailrec_entry_point_label : <a href="#type-label">label</a>;</span></code></li><li id="type-fundecl.fun_contains_calls" class="def record field anchored"><a href="#type-fundecl.fun_contains_calls" class="anchor"></a><code><span>fun_contains_calls : bool;</span></code></li><li id="type-fundecl.fun_num_stack_slots" class="def record field anchored"><a href="#type-fundecl.fun_num_stack_slots" class="anchor"></a><code><span>fun_num_stack_slots : <span>int array</span>;</span></code></li><li id="type-fundecl.fun_frame_required" class="def record field anchored"><a href="#type-fundecl.fun_frame_required" class="anchor"></a><code><span>fun_frame_required : bool;</span></code></li><li id="type-fundecl.fun_prologue_required" class="def record field anchored"><a href="#type-fundecl.fun_prologue_required" class="anchor"></a><code><span>fun_prologue_required : bool;</span></code></li></ol><code><span>}</span></code></div></div></div></body></html>
|
||||
<a href="#type-instruction">instruction</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-invert_test"><a href="#val-invert_test" class="anchor"></a><code><span><span class="keyword">val</span> invert_test : <span><a href="../Mach/index.html#type-test">Mach.test</a> <span class="arrow">-></span></span> <a href="../Mach/index.html#type-test">Mach.test</a></span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-fundecl"><a href="#type-fundecl" class="anchor"></a><code><span><span class="keyword">type</span> fundecl</span><span> = </span><span>{</span></code><ol><li id="type-fundecl.fun_name" class="def record field anchored"><a href="#type-fundecl.fun_name" class="anchor"></a><code><span>fun_name : string;</span></code></li><li id="type-fundecl.fun_args" class="def record field anchored"><a href="#type-fundecl.fun_args" class="anchor"></a><code><span>fun_args : <a href="../Reg/Set/index.html#type-t">Reg.Set.t</a>;</span></code></li><li id="type-fundecl.fun_body" class="def record field anchored"><a href="#type-fundecl.fun_body" class="anchor"></a><code><span>fun_body : <a href="#type-instruction">instruction</a>;</span></code></li><li id="type-fundecl.fun_fast" class="def record field anchored"><a href="#type-fundecl.fun_fast" class="anchor"></a><code><span>fun_fast : bool;</span></code></li><li id="type-fundecl.fun_dbg" class="def record field anchored"><a href="#type-fundecl.fun_dbg" class="anchor"></a><code><span>fun_dbg : <a href="../Debuginfo/index.html#type-t">Debuginfo.t</a>;</span></code></li><li id="type-fundecl.fun_tailrec_entry_point_label" class="def record field anchored"><a href="#type-fundecl.fun_tailrec_entry_point_label" class="anchor"></a><code><span>fun_tailrec_entry_point_label : <a href="#type-label">label</a>;</span></code></li><li id="type-fundecl.fun_contains_nontail_calls" class="def record field anchored"><a href="#type-fundecl.fun_contains_nontail_calls" class="anchor"></a><code><span>fun_contains_nontail_calls : bool;</span></code></li><li id="type-fundecl.fun_num_stack_slots" class="def record field anchored"><a href="#type-fundecl.fun_num_stack_slots" class="anchor"></a><code><span>fun_num_stack_slots : <span>int array</span>;</span></code></li><li id="type-fundecl.fun_frame_required" class="def record field anchored"><a href="#type-fundecl.fun_frame_required" class="anchor"></a><code><span>fun_frame_required : bool;</span></code></li><li id="type-fundecl.fun_extra_stack_used" class="def record field anchored"><a href="#type-fundecl.fun_extra_stack_used" class="anchor"></a><code><span>fun_extra_stack_used : int;</span></code></li></ol><code><span>}</span></code></div></div></div></body></html>
|
||||
|
|
|
|||
12
ocaml/Linkdeps/index.html
Normal file
12
ocaml/Linkdeps/index.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Linkdeps (ocaml.Linkdeps)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » Linkdeps</nav><header class="odoc-preamble"><h1>Module <code><span>Linkdeps</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> t</span></code></div><div class="spec-doc"><p>The state of the linking check. It keeps track of compilation units provided and required so far.</p></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-compunit"><a href="#type-compunit" class="anchor"></a><code><span><span class="keyword">type</span> compunit</span><span> = string</span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-filename"><a href="#type-filename" class="anchor"></a><code><span><span class="keyword">type</span> filename</span><span> = string</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-create"><a href="#val-create" class="anchor"></a><code><span><span class="keyword">val</span> create : <span><span class="label">complete</span>:bool <span class="arrow">-></span></span> <a href="#type-t">t</a></span></code></div><div class="spec-doc"><p><code>create ~complete</code> returns an empty state. If <code>complete</code> is <code>true</code>, missing compilation units will be treated as errors.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-add"><a href="#val-add" class="anchor"></a><code><span><span class="keyword">val</span> add :
|
||||
<span><a href="#type-t">t</a> <span class="arrow">-></span></span>
|
||||
<span><span class="label">filename</span>:<a href="#type-filename">filename</a> <span class="arrow">-></span></span>
|
||||
<span><span class="label">compunit</span>:<a href="#type-compunit">compunit</a> <span class="arrow">-></span></span>
|
||||
<span><span class="label">provides</span>:<span><a href="#type-compunit">compunit</a> list</span> <span class="arrow">-></span></span>
|
||||
<span><span class="label">requires</span>:<span><a href="#type-compunit">compunit</a> list</span> <span class="arrow">-></span></span>
|
||||
unit</span></code></div><div class="spec-doc"><p><code>add t ~filename ~compunit ~provides ~requires</code> registers the compilation unit <code>compunit</code> found in <code>filename</code> to <code>t</code>.</p><ul><li><code>provides</code> are units and sub-units provided by <code>compunit</code></li><li><code>requires</code> are units required by <code>compunit</code></li></ul><p><code>add</code> should be called in reverse topological order.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-required"><a href="#val-required" class="anchor"></a><code><span><span class="keyword">val</span> required : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> <span><a href="#type-compunit">compunit</a> <span class="arrow">-></span></span> bool</span></code></div><div class="spec-doc"><p><code>required t compunit</code> returns <code>true</code> if <code>compunit</code> is a dependency of previously added compilation units.</p></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-compunit_and_source"><a href="#type-compunit_and_source" class="anchor"></a><code><span><span class="keyword">type</span> compunit_and_source</span><span> = </span><span>{</span></code><ol><li id="type-compunit_and_source.compunit" class="def record field anchored"><a href="#type-compunit_and_source.compunit" class="anchor"></a><code><span>compunit : <a href="#type-compunit">compunit</a>;</span></code></li><li id="type-compunit_and_source.filename" class="def record field anchored"><a href="#type-compunit_and_source.filename" class="anchor"></a><code><span>filename : <a href="#type-filename">filename</a>;</span></code></li></ol><code><span>}</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.Missing_implementations" class="def variant constructor anchored"><a href="#type-error.Missing_implementations" class="anchor"></a><code><span>| </span><span><span class="constructor">Missing_implementations</span> <span class="keyword">of</span> <span><span>(<a href="#type-compunit">compunit</a> * <span><a href="#type-compunit_and_source">compunit_and_source</a> list</span>)</span> list</span></span></code></li><li id="type-error.Wrong_link_order" class="def variant constructor anchored"><a href="#type-error.Wrong_link_order" class="anchor"></a><code><span>| </span><span><span class="constructor">Wrong_link_order</span> <span class="keyword">of</span> <span><span>(<a href="#type-compunit_and_source">compunit_and_source</a> * <span><a href="#type-compunit_and_source">compunit_and_source</a> list</span>)</span> list</span></span></code></li><li id="type-error.Multiple_definitions" class="def variant constructor anchored"><a href="#type-error.Multiple_definitions" class="anchor"></a><code><span>| </span><span><span class="constructor">Multiple_definitions</span> <span class="keyword">of</span> <span><span>(<a href="#type-compunit">compunit</a> * <span><a href="#type-filename">filename</a> list</span>)</span> list</span></span></code></li></ol></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-check"><a href="#val-check" class="anchor"></a><code><span><span class="keyword">val</span> check : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> <span><a href="#type-error">error</a> option</span></span></code></div><div class="spec-doc"><p><code>check t</code> should be called once all the compilation units to be linked have been added. It returns some error if:</p><ul><li>There are some missing implementations and <code>complete</code> is <code>true</code></li><li>Some implementation appear before their dependencies</li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error :
|
||||
<span><span class="label">print_filename</span>:<span>string <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span> <span class="arrow">-></span></span>
|
||||
<span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-format_printer">Format_doc.format_printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error_doc"><a href="#val-report_error_doc" class="anchor"></a><code><span><span class="keyword">val</span> report_error_doc :
|
||||
<span><span class="label">print_filename</span>:<span>string <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span> <span class="arrow">-></span></span>
|
||||
<span><a href="#type-error">error</a> <a href="../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div></div></body></html>
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Dir (ocaml.Load_path.Dir)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » <a href="../index.html">Load_path</a> » Dir</nav><header class="odoc-preamble"><h1>Module <code><span>Load_path.Dir</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> t</span></code></div><div class="spec-doc"><p>Represent one directory in the load path.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-create"><a href="#val-create" class="anchor"></a><code><span><span class="keyword">val</span> create : <span>string <span class="arrow">-></span></span> <a href="#type-t">t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-path"><a href="#val-path" class="anchor"></a><code><span><span class="keyword">val</span> path : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-files"><a href="#val-files" class="anchor"></a><code><span><span class="keyword">val</span> files : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> <span>string list</span></span></code></div><div class="spec-doc"><p>All the files in that directory. This doesn't include files in sub-directories of this directory.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-find"><a href="#val-find" class="anchor"></a><code><span><span class="keyword">val</span> find : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> <span>string option</span></span></code></div><div class="spec-doc"><p><code>find dir fn</code> returns the full path to <code>fn</code> in <code>dir</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-find_uncap"><a href="#val-find_uncap" class="anchor"></a><code><span><span class="keyword">val</span> find_uncap : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> <span>string option</span></span></code></div><div class="spec-doc"><p>As <a href="#val-find"><code>find</code></a>, but search also for uncapitalized name, i.e. if name is Foo.ml, either /path/Foo.ml or /path/foo.ml may be returned.</p></div></div></div></body></html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Dir (ocaml.Load_path.Dir)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » <a href="../index.html">Load_path</a> » Dir</nav><header class="odoc-preamble"><h1>Module <code><span>Load_path.Dir</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> t</span></code></div><div class="spec-doc"><p>Represent one directory in the load path.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-create"><a href="#val-create" class="anchor"></a><code><span><span class="keyword">val</span> create : <span><span class="label">hidden</span>:bool <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> <a href="#type-t">t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-path"><a href="#val-path" class="anchor"></a><code><span><span class="keyword">val</span> path : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-files"><a href="#val-files" class="anchor"></a><code><span><span class="keyword">val</span> files : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> <span>string list</span></span></code></div><div class="spec-doc"><p>All the files in that directory. This doesn't include files in sub-directories of this directory.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-hidden"><a href="#val-hidden" class="anchor"></a><code><span><span class="keyword">val</span> hidden : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> bool</span></code></div><div class="spec-doc"><p>If the modules in this directory should not be bound in the initial scope</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-find"><a href="#val-find" class="anchor"></a><code><span><span class="keyword">val</span> find : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> <span>string option</span></span></code></div><div class="spec-doc"><p><code>find dir fn</code> returns the full path to <code>fn</code> in <code>dir</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-find_normalized"><a href="#val-find_normalized" class="anchor"></a><code><span><span class="keyword">val</span> find_normalized : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> <span>string <span class="arrow">-></span></span> <span>string option</span></span></code></div><div class="spec-doc"><p>As <a href="#val-find"><code>find</code></a>, but search also for uncapitalized name, i.e. if name is Foo.ml, either /path/Foo.ml or /path/foo.ml may be returned.</p></div></div></div></body></html>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
ocaml/Location/Doc/index.html
Normal file
2
ocaml/Location/Doc/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Doc (ocaml.Location.Doc)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><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> » <a href="../index.html">Location</a> » Doc</nav><header class="odoc-preamble"><h1>Module <code><span>Location.Doc</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-separate_new_message"><a href="#val-separate_new_message" class="anchor"></a><code><span><span class="keyword">val</span> separate_new_message : <span>unit <a href="../../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-filename"><a href="#val-filename" class="anchor"></a><code><span><span class="keyword">val</span> filename : <span>string <a href="../../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-quoted_filename"><a href="#val-quoted_filename" class="anchor"></a><code><span><span class="keyword">val</span> quoted_filename : <span>string <a href="../../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-loc"><a href="#val-loc" class="anchor"></a><code><span><span class="keyword">val</span> loc : <span><a href="../index.html#type-t">t</a> <a href="../../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-locs"><a href="#val-locs" class="anchor"></a><code><span><span class="keyword">val</span> locs : <span><span><a href="../index.html#type-t">t</a> list</span> <a href="../../Format_doc/index.html#type-printer">Format_doc.printer</a></span></span></code></div></div></div></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue