mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 11:15:43 -05:00
63 lines
No EOL
3.8 KiB
HTML
63 lines
No EOL
3.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="style.css" type="text/css">
|
|
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
|
|
<link rel="Start" href="index.html">
|
|
<link rel="next" href="Smt.Symbol.html">
|
|
<link rel="Up" href="Smt.html">
|
|
<link title="Index of types" rel=Appendix href="index_types.html">
|
|
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
|
|
<link title="Index of values" rel=Appendix href="index_values.html">
|
|
<link title="Index of modules" rel=Appendix href="index_modules.html">
|
|
<link title="Index of module types" rel=Appendix href="index_module_types.html">
|
|
<link title="Smt" rel="Chapter" href="Smt.html">
|
|
<link title="Hstring" rel="Chapter" href="Hstring.html"><link title="Builtin types " rel="Section" href="#4_Builtintypes">
|
|
<link title="Declaring new types " rel="Section" href="#4_Declaringnewtypes">
|
|
<title>Smt.Type</title>
|
|
</head>
|
|
<body>
|
|
<div class="navbar"> <a href="Smt.html">Up</a>
|
|
<a href="Smt.Symbol.html">Next</a>
|
|
</div>
|
|
<center><h1>Module <a href="type_Smt.Type.html">Smt.Type</a></h1></center>
|
|
<br>
|
|
<pre><span class="keyword">module</span> Type: <code class="code">sig</code> <a href="Smt.Type.html">..</a> <code class="code">end</code></pre><span id="3_Typing"><h3>Typing </h3></span><br>
|
|
<hr width="100%">
|
|
<pre><span id="TYPEt"><span class="keyword">type</span> <code class="type"></code>t</span> = <code class="type"><a href="Hstring.html#TYPEt">Hstring.t</a></code> </pre>
|
|
<div class="info">
|
|
The type of types in Alt-Ergo Zero<br>
|
|
</div>
|
|
|
|
<br>
|
|
<span id="4_Builtintypes"><h4>Builtin types </h4></span><br>
|
|
<pre><span id="VALtype_int"><span class="keyword">val</span> type_int</span> : <code class="type"><a href="Smt.Type.html#TYPEt">t</a></code></pre><div class="info">
|
|
The type of integers<br>
|
|
</div>
|
|
<pre><span id="VALtype_real"><span class="keyword">val</span> type_real</span> : <code class="type"><a href="Smt.Type.html#TYPEt">t</a></code></pre><div class="info">
|
|
The type of reals<br>
|
|
</div>
|
|
<pre><span id="VALtype_bool"><span class="keyword">val</span> type_bool</span> : <code class="type"><a href="Smt.Type.html#TYPEt">t</a></code></pre><div class="info">
|
|
The type of booleans<br>
|
|
</div>
|
|
<pre><span id="VALtype_proc"><span class="keyword">val</span> type_proc</span> : <code class="type"><a href="Smt.Type.html#TYPEt">t</a></code></pre><div class="info">
|
|
The type processes (identifiers)<br>
|
|
</div>
|
|
<br>
|
|
<span id="4_Declaringnewtypes"><h4>Declaring new types </h4></span><br>
|
|
<pre><span id="VALdeclare"><span class="keyword">val</span> declare</span> : <code class="type"><a href="Hstring.html#TYPEt">Hstring.t</a> -> <a href="Hstring.html#TYPEt">Hstring.t</a> list -> unit</code></pre><div class="info">
|
|
<ul>
|
|
<li><code class="code">declare n cstrs</code> declares a new enumerated data-type with
|
|
name <code class="code">n</code> and constructors <code class="code">cstrs</code>.</li>
|
|
<li><code class="code">declare n []</code> declares a new abstract type with name <code class="code">n</code>.</li>
|
|
</ul>
|
|
<br>
|
|
</div>
|
|
<pre><span id="VALall_constructors"><span class="keyword">val</span> all_constructors</span> : <code class="type">unit -> <a href="Hstring.html#TYPEt">Hstring.t</a> list</code></pre><div class="info">
|
|
<code class="code">all_constructors ()</code> returns a list of all the defined constructors.<br>
|
|
</div>
|
|
<pre><span id="VALconstructors"><span class="keyword">val</span> constructors</span> : <code class="type"><a href="Smt.Type.html#TYPEt">t</a> -> <a href="Hstring.html#TYPEt">Hstring.t</a> list</code></pre><div class="info">
|
|
<code class="code">constructors ty</code> returns the list of constructors of <code class="code">ty</code> when type is
|
|
an enumerated data-type, otherwise returns <code class="code">[]</code>.<br>
|
|
</div>
|
|
</body></html> |