You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
41 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ErlangAst (infer.ErlangFrontend.ErlangAst)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> <a href="../../index.html">infer</a> &#x00BB; <a href="../index.html">ErlangFrontend</a> &#x00BB; ErlangAst</nav><h1>Module <code>ErlangFrontend.ErlangAst</code></h1><nav class="toc"><ul><li><a href="#basics">Basics</a></li><li><a href="#s8.2:-atomic-literals">S8.2: Atomic literals</a></li><li><a href="#s8.4:-expressions">S8.4: Expressions</a></li><li><a href="#s8.5-clauses">S8.5 Clauses</a></li><li><a href="#s8.1:-module-declarations-and-forms">S8.1: Module declarations and forms</a></li></ul></nav></header><aside><p>Erlang abstract forms, following https://erlang.org/doc/apps/erts/absform.html</p></aside><section><header><h3 id="basics"><a href="#basics" class="anchor"></a>Basics</h3></header><dl><dt class="spec type" id="type-module_reference"><a href="#type-module_reference" class="anchor"></a><code><span class="keyword">type</span> module_reference</code><code> = </code><table class="variant"><tr id="type-module_reference.ModuleName" class="anchored"><td class="def constructor"><a href="#type-module_reference.ModuleName" class="anchor"></a><code>| </code><code><span class="constructor">ModuleName</span> <span class="keyword">of</span> string</code></td></tr><tr id="type-module_reference.ModuleMissing" class="anchored"><td class="def constructor"><a href="#type-module_reference.ModuleMissing" class="anchor"></a><code>| </code><code><span class="constructor">ModuleMissing</span></code></td></tr><tr id="type-module_reference.ModuleVariable" class="anchored"><td class="def constructor"><a href="#type-module_reference.ModuleVariable" class="anchor"></a><code>| </code><code><span class="constructor">ModuleVariable</span> <span class="keyword">of</span> string</code></td></tr></table></dt><dt class="spec type" id="type-function_reference"><a href="#type-function_reference" class="anchor"></a><code><span class="keyword">type</span> function_reference</code><code> = </code><table class="variant"><tr id="type-function_reference.FunctionName" class="anchored"><td class="def constructor"><a href="#type-function_reference.FunctionName" class="anchor"></a><code>| </code><code><span class="constructor">FunctionName</span> <span class="keyword">of</span> string</code></td></tr><tr id="type-function_reference.FunctionVariable" class="anchored"><td class="def constructor"><a href="#type-function_reference.FunctionVariable" class="anchor"></a><code>| </code><code><span class="constructor">FunctionVariable</span> <span class="keyword">of</span> string</code></td></tr></table></dt><dt class="spec type" id="type-function_"><a href="#type-function_" class="anchor"></a><code><span class="keyword">type</span> function_</code><code> = </code><code>{</code><table class="record"><tr id="type-function_.module_" class="anchored"><td class="def field"><a href="#type-function_.module_" class="anchor"></a><code>module_ : <a href="index.html#type-module_reference">module_reference</a>;</code></td></tr><tr id="type-function_.function_" class="anchored"><td class="def field"><a href="#type-function_.function_" class="anchor"></a><code>function_ : <a href="index.html#type-function_reference">function_reference</a>;</code></td></tr><tr id="type-function_.arity" class="anchored"><td class="def field"><a href="#type-function_.arity" class="anchor"></a><code>arity : int;</code></td></tr></table><code>}</code></dt><dt class="spec type" id="type-line"><a href="#type-line" class="anchor"></a><code><span class="keyword">type</span> line</code><code> = int</code></dt><dt class="spec type" id="type-record_name"><a href="#type-record_name" class="anchor"></a><code><span class="keyword">type</span> record_name</code><code> = string</code></dt><dt class="spec type" id="type-binary_operator"><a href="#type-binary_operator" class="anchor"></a><code><span class="keyword">type</span> binary_operator</code><code> = </code><table class="variant"><tr id="type-binary_operator.Add" class="anchored"><td class="def constructor"><a href="#type-binary_operator.Add" class="anchor"></a><code>| </code><code><span class="constructor">Add</span></code></td></tr><tr id="type-binary_operator.And" class="anchored"><td class="def constructor"><a href="#type-binary_operator.And" class="anchor"></a><code>| </code><code><span class="constructor">And</span></code></td></tr><tr id="type-binary_operator.AndAlso" class="anchored"><td class="def constructor"><a href="#type-binary_operator.AndAlso" class="anchor"></a><code>| </code><code><span class="constructor">AndAlso</span></code></td></tr><tr id="type-binary_operator.AtLeast" class="anchored"><td class="def constructor"><a href="#type-binary_operator.AtLeast" class="anchor"></a><code>| </code><code><span class="constructor">AtLeast</span></code></td></tr><tr id="type-binary_operator.AtMost" class="anchored"><td class="def constructor"><a href="#type-binary_operator.AtMost" class="anchor"></a><code>| </code><code><span class="constructor">AtMost</span></code></td></tr><tr id="type-binary_operator.BAnd" class="anchored"><td class="def constructor"><a href="#type-binary_operator.BAnd" class="anchor"></a><code>| </code><code><span class="constructor">BAnd</span></code></td></tr><tr id="type-binary_operator.BOr" class="anchored"><td class="def constructor"><a href="#type-binary_operator.BOr" class="anchor"></a><code>| </code><code><span class="constructor">BOr</span></code></td></tr><tr id="type-binary_operator.Bsl" class="anchored"><td class="def constructor"><a href="#type-binary_operator.Bsl" class="anchor"></a><code>| </code><code><span class="constructor">Bsl</span></code></td></tr><tr id="type-binary_operator.Bsr" class="anchored"><td class="def constructor"><a href="#type-binary_operator.Bsr" class="anchor"></a><code>| </code><code><span class="constructor">Bsr</span></code></td></tr><tr id="type-binary_operator.BXor" class="anchored"><td class="def constructor"><a href="#type-binary_operator.BXor" class="anchor"></a><code>| </code><code><span class="constructor">BXor</span></code></td></tr><tr id="type-binary_operator.Equal" class="anchored"><td class="def constructor"><a href="#type-binary_operator.Equal" class="anchor"></a><code>| </code><code><span class="constructor">Equal</span></code></td></tr><tr id="type-binary_operator.ExactlyEqual" class="anchored"><td class="def constructor"><a href="#type-binary_operator.ExactlyEqual" class="anchor"></a><code>| </code><code><span class="constructor">ExactlyEqual</span></code></td></tr><tr id="type-binary_operator.ExactlyNotEqual" class="anchored"><td class="def constructor"><a href="#type-binary_operator.ExactlyNotEqual" class="anchor"></a><code>| </code><code><span class="constructor">ExactlyNotEqual</span></code></td></tr><tr id="type-binary_operator.FDiv" class="anchored"><td class="def constructor"><a href="#type-binary_operator.FDiv" class="anchor"></a><code>| </code><code><span class="constructor">FDiv</span></code></td></tr><tr id="type-binary_operator.Greater" class="anchored"><td class="def constructor"><a href="#type-binary_operator.Greater" class="anchor"></a><code>| </code><code><span class="constructor">Greater</span></code></td></tr><tr id="type-binary_operator.IDiv" class="anchored"><td class="def constructor"><a href="#type-binary_operator.IDiv" class="anchor"></a><code>| </code><code><span class="constructor">IDiv</span></code></td></tr><tr id="type-binary_operator.Less" class="anchored"><td class="def constructor"><a href="#type-binary_operator.Less" class="anchor"></a><code>| </code><code><span class="constructor">Less</span></code></td></tr><tr id="type-binary_operator.ListAdd" class="anchored"><td class="def constructor"><a href="#type-binary_operator.ListAdd" class="anchor"></a><code>| </code><code><span class="constructor">ListAdd</span></code></td></tr><tr id="type-binary_operator.ListSub" class="anchored"><td class="def constructor"><a href="#type-binary_operator.ListSub" class="anchor"></a><code>| </code><code><span class="constructor">ListSub</span></code></td></tr><tr id="type-binary_operator.Mul" class="anchored"><td class="def constructor"><a href="#type-binary_operator.Mul" class="anchor"></a><code>| </code><code><span class="constructor">Mul</span></code></td></tr><tr id="type-binary_operator.NotEqual" class="anchored"><td class="def constructor"><a href="#type-binary_operator.NotEqual" class="anchor"></a><code>| </code><code><span class="constructor">NotEqual</span></code></td></tr><tr id="type-binary_operator.Or" class="anchored"><td class="def constructor"><a href="#type-binary_operator.Or" class="anchor"></a><code>| </code><code><span class="constructor">Or</span></code></td></tr><tr id="type-binary_operator.OrElse" class="anchored"><td class="def constructor"><a href="#type-binary_operator.OrElse" class="anchor"></a><code>| </code><code><span class="constructor">OrElse</span></code></td></tr><tr id="type-binary_operator.Rem" class="anchored"><td class="def constructor"><a href="#type-binary_operator.Rem" class="anchor"></a><code>| </code><code><span class="constructor">Rem</span></code></td></tr><tr id="type-binary_operator.Send" class="anchored"><td class="def constructor"><a href="#type-binary_operator.Send" class="anchor"></a><code>| </code><code><span class="constructor">Send</span></code></td></tr><tr id="type-binary_operator.Sub" class="anchored"><td class="def constructor"><a href="#type-binary_operator.Sub" class="anchor"></a><code>| </code><code><span class="constructor">Sub</span></code></td></tr><tr id="type-binary_operator.Xor" class="anchored"><td class="def constructor"><a href="#type-binary_operator.Xor" class="anchor"></a><code>| </code><code><span class="constructor">Xor</span></code></td></tr></table></dt><dt class="spec type" id="type-unary_operator"><a href="#type-unary_operator" class="anchor"></a><code><span class="keyword">type</span> unary_operator</code><code> = </code><table class="variant"><tr id="type-unary_operator.UBNot" class="anchored"><td class="def constructor"><a href="#type-unary_operator.UBNot" class="anchor"></a><code>| </code><code><span class="constructor">UBNot</span></code></td></tr><tr id="type-unary_operator.UMinus" class="anchored"><td class="def constructor"><a href="#type-unary_operator.UMinus" class="anchor"></a><code>| </code><code><span class="constructor">UMinus</span></code></td></tr><tr id="type-unary_operator.UNot" class="anchored"><td class="def constructor"><a href="#type-unary_operator.UNot" class="anchor"></a><code>| </code><code><span class="constructor">UNot</span></code></td></tr></table></dt><dt class="spec type" id="type-association_kind"><a href="#type-association_kind" class="anchor"></a><code><span class="keyword">type</span> association_kind</code><code> = </code><table class="variant"><tr id="type-association_kind.Arrow" class="anchored"><td class="def constructor"><a href="#type-association_kind.Arrow" class="anchor"></a><code>| </code><code><span class="constructor">Arrow</span></code></td></tr><tr id="type-association_kind.Exact" class="anchored"><td class="def constructor"><a href="#type-association_kind.Exact" class="anchor"></a><code>| </code><code><span class="constructor">Exact</span></code></td></tr></table></dt><dt class="spec type" id="type-exception_"><a href="#type-exception_" class="anchor"></a><code><span class="keyword">type</span> exception_</code><code> = </code><table class="variant"><tr id="type-exception_.Atom" class="anchored"><td class="def constructor"><a href="#type-exception_.Atom" class="anchor"></a><code>| </code><code><span class="constructor">Atom</span> <span class="keyword">of</span> string</code></td></tr><tr id="type-exception_.Pattern" class="anchored"><td class="def constructor"><a href="#type-exception_.Pattern" class="anchor"></a><code>| </code><code><span class="constructor">Pattern</span> <span class="keyword">of</span> string</code></td></tr></table></dt><dt class="spec type" id="type-type_specifier"><a href="#type-type_specifier" class="anchor"></a><code><span class="keyword">type</span> type_specifier</code><code> = unit</code></dt></dl></section><section><header><h3 id="s8.2:-atomic-literals"><a href="#s8.2:-atomic-literals" class="anchor"></a>S8.2: Atomic literals</h3></header><dl><dt class="spec type" id="type-literal"><a href="#type-literal" class="anchor"></a><code><span class="keyword">type</span> literal</code><code> = </code><table class="variant"><tr id="type-literal.Atom" class="anchored"><td class="def constructor"><a href="#type-literal.Atom" class="anchor"></a><code>| </code><code><span class="constructor">Atom</span> <span class="keyword">of</span> string</code></td></tr><tr id="type-literal.Char" class="anchored"><td class="def constructor"><a href="#type-literal.Char" class="anchor"></a><code>| </code><code><span class="constructor">Char</span> <span class="keyword">of</span> string</code></td></tr><tr id="type-literal.Float" class="anchored"><td class="def constructor"><a href="#type-literal.Float" class="anchor"></a><code>| </code><code><span class="constructor">Float</span> <span class="keyword">of</span> float</code></td></tr><tr id="type-literal.Int" class="anchored"><td class="def constructor"><a href="#type-literal.Int" class="anchor"></a><code>| </code><code><span class="constructor">Int</span> <span class="keyword">of</span> string</code></td></tr><tr id="type-literal.String" class="anchored"><td class="def constructor"><a href="#type-literal.String" class="anchor"></a><code>| </code><code><span class="constructor">String</span> <span class="keyword">of</span> string</code></td></tr></table></dt></dl></section><section><header><h3 id="s8.4:-expressions"><a href="#s8.4:-expressions" class="anchor"></a>S8.4: Expressions</h3></header><dl><dt class="spec type" id="type-body"><a href="#type-body" class="anchor"></a><code><span class="keyword">type</span> body</code><code> = <span><a href="index.html#type-expression">expression</a> list</span></code></dt><dt class="spec type" id="type-simple_expression"><a href="#type-simple_expression" class="anchor"></a><code><span class="keyword">and</span> simple_expression</code><code> = </code><table class="variant"><tr id="type-simple_expression.BinaryOperator" class="anchored"><td class="def constructor"><a href="#type-simple_expression.BinaryOperator" class="anchor"></a><code>| </code><code><span class="constructor">BinaryOperator</span> <span class="keyword">of</span> <a href="index.html#type-expression">expression</a> * <a href="index.html#type-binary_operator">binary_operator</a> * <a href="index.html#type-expression">expression</a></code></td></tr><tr id="type-simple_expression.BitstringComprehension" class="anchored"><td class="def constructor"><a href="#type-simple_expression.BitstringComprehension" class="anchor"></a><code>| </code><code><span class="constructor">BitstringComprehension</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_expression.expression" class="anchored"><td class="def field"><a href="#type-simple_expression.expression" class="anchor"></a><code>expression : <a href="index.html#type-expression">expression</a>;</code></td></tr><tr id="type-simple_expression.qualifiers" class="anchored"><td class="def field"><a href="#type-simple_expression.qualifiers" class="anchor"></a><code>qualifiers : <span><a href="index.html#type-qualifier">qualifier</a> list</span>;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_expression.BitstringConstructor" class="anchored"><td class="def constructor"><a href="#type-simple_expression.BitstringConstructor" class="anchor"></a><code>| </code><code><span class="constructor">BitstringConstructor</span> <span class="keyword">of</span> <span><a href="index.html#type-bin_element">bin_element</a> list</span></code></td></tr><tr id="type-simple_expression.Block" class="anchored"><td class="def constructor"><a href="#type-simple_expression.Block" class="anchor"></a><code>| </code><code><span class="constructor">Block</span> <span class="keyword">of</span> <a href="index.html#type-body">body</a></code></td></tr><tr id="type-simple_expression.Call" class="anchored"><td class="def constructor"><a href="#type-simple_expression.Call" class="anchor"></a><code>| </code><code><span class="constructor">Call</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_expression.module_" class="anchored"><td class="def field"><a href="#type-simple_expression.module_" class="anchor"></a><code>module_ : <span><a href="index.html#type-expression">expression</a> option</span>;</code></td></tr><tr id="type-simple_expression.function_" class="anchored"><td class="def field"><a href="#type-simple_expression.function_" class="anchor"></a><code>function_ : <a href="index.html#type-expression">expression</a>;</code></td></tr><tr id="type-simple_expression.args" class="anchored"><td class="def field"><a href="#type-simple_expression.args" class="anchor"></a><code>args : <span><a href="index.html#type-expression">expression</a> list</span>;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_expression.Case" class="anchored"><td class="def constructor"><a href="#type-simple_expression.Case" class="anchor"></a><code>| </code><code><span class="constructor">Case</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_expression.expression" class="anchored"><td class="def field"><a href="#type-simple_expression.expression" class="anchor"></a><code>expression : <a href="index.html#type-expression">expression</a>;</code></td></tr><tr id="type-simple_expression.cases" class="anchored"><td class="def field"><a href="#type-simple_expression.cases" class="anchor"></a><code>cases : <span><a href="index.html#type-case_clause">case_clause</a> list</span>;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_expression.Catch" class="anchored"><td class="def constructor"><a href="#type-simple_expression.Catch" class="anchor"></a><code>| </code><code><span class="constructor">Catch</span> <span class="keyword">of</span> <a href="index.html#type-expression">expression</a></code></td></tr><tr id="type-simple_expression.Cons" class="anchored"><td class="def constructor"><a href="#type-simple_expression.Cons" class="anchor"></a><code>| </code><code><span class="constructor">Cons</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_expression.head" class="anchored"><td class="def field"><a href="#type-simple_expression.head" class="anchor"></a><code>head : <a href="index.html#type-expression">expression</a>;</code></td></tr><tr id="type-simple_expression.tail" class="anchored"><td class="def field"><a href="#type-simple_expression.tail" class="anchor"></a><code>tail : <a href="index.html#type-expression">expression</a>;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_expression.Fun" class="anchored"><td class="def constructor"><a href="#type-simple_expression.Fun" class="anchor"></a><code>| </code><code><span class="constructor">Fun</span> <span class="keyword">of</span> <a href="index.html#type-function_">function_</a></code></td></tr><tr id="type-simple_expression.If" class="anchored"><td class="def constructor"><a href="#type-simple_expression.If" class="anchor"></a><code>| </code><code><span class="constructor">If</span> <span class="keyword">of</span> <span><a href="index.html#type-case_clause">case_clause</a> list</span></code></td></tr><tr id="type-simple_expression.Lambda" class="anchored"><td class="def constructor"><a href="#type-simple_expression.Lambda" class="anchor"></a><code>| </code><code><span class="constructor">Lambda</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_expression.name" class="anchored"><td class="def field"><a href="#type-simple_expression.name" class="anchor"></a><code>name : <span>string option</span>;</code></td></tr><tr id="type-simple_expression.cases" class="anchored"><td class="def field"><a href="#type-simple_expression.cases" class="anchor"></a><code>cases : <span><a href="index.html#type-case_clause">case_clause</a> list</span>;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_expression.ListComprehension" class="anchored"><td class="def constructor"><a href="#type-simple_expression.ListComprehension" class="anchor"></a><code>| </code><code><span class="constructor">ListComprehension</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_expression.expression" class="anchored"><td class="def field"><a href="#type-simple_expression.expression" class="anchor"></a><code>expression : <a href="index.html#type-expression">expression</a>;</code></td></tr><tr id="type-simple_expression.qualifiers" class="anchored"><td class="def field"><a href="#type-simple_expression.qualifiers" class="anchor"></a><code>qualifiers : <span><a href="index.html#type-qualifier">qualifier</a> list</span>;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_expression.Literal" class="anchored"><td class="def constructor"><a href="#type-simple_expression.Literal" class="anchor"></a><code>| </code><code><span class="constructor">Literal</span> <span class="keyword">of</span> <a href="index.html#type-literal">literal</a></code></td></tr><tr id="type-simple_expression.Map" class="anchored"><td class="def constructor"><a href="#type-simple_expression.Map" class="anchor"></a><code>| </code><code><span class="constructor">Map</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_expression.map" class="anchored"><td class="def field"><a href="#type-simple_expression.map" class="anchor"></a><code>map : <span><a href="index.html#type-expression">expression</a> option</span>;</code></td></tr><tr id="type-simple_expression.updates" class="anchored"><td class="def field"><a href="#type-simple_expression.updates" class="anchor"></a><code>updates : <span><a href="index.html#type-association">association</a> list</span>;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_expression.Match" class="anchored"><td class="def constructor"><a href="#type-simple_expression.Match" class="anchor"></a><code>| </code><code><span class="constructor">Match</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_expression.pattern" class="anchored"><td class="def field"><a href="#type-simple_expression.pattern" class="anchor"></a><code>pattern : <a href="index.html#type-pattern">pattern</a>;</code></td></tr><tr id="type-simple_expression.body" class="anchored"><td class="def field"><a href="#type-simple_expression.body" class="anchor"></a><code>body : <a href="index.html#type-expression">expression</a>;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_expression.Nil" class="anchored"><td class="def constructor"><a href="#type-simple_expression.Nil" class="anchor"></a><code>| </code><code><span class="constructor">Nil</span></code></td></tr><tr id="type-simple_expression.Receive" class="anchored"><td class="def constructor"><a href="#type-simple_expression.Receive" class="anchor"></a><code>| </code><code><span class="constructor">Receive</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_expression.cases" class="anchored"><td class="def field"><a href="#type-simple_expression.cases" class="anchor"></a><code>cases : <span><a href="index.html#type-case_clause">case_clause</a> list</span>;</code></td></tr><tr id="type-simple_expression.timeout" class="anchored"><td class="def field"><a href="#type-simple_expression.timeout" class="anchor"></a><code>timeout : <span><a href="index.html#type-timeout">timeout</a> option</span>;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_expression.RecordAccess" class="anchored"><td class="def constructor"><a href="#type-simple_expression.RecordAccess" class="anchor"></a><code>| </code><code><span class="constructor">RecordAccess</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_expression.record" class="anchored"><td class="def field"><a href="#type-simple_expression.record" class="anchor"></a><code>record : <a href="index.html#type-expression">expression</a>;</code></td></tr><tr id="type-simple_expression.name" class="anchored"><td class="def field"><a href="#type-simple_expression.name" class="anchor"></a><code>name : <a href="index.html#type-record_name">record_name</a>;</code></td></tr><tr id="type-simple_expression.field" class="anchored"><td class="def field"><a href="#type-simple_expression.field" class="anchor"></a><code>field : string;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_expression.RecordIndex" class="anchored"><td class="def constructor"><a href="#type-simple_expression.RecordIndex" class="anchor"></a><code>| </code><code><span class="constructor">RecordIndex</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_expression.name" class="anchored"><td class="def field"><a href="#type-simple_expression.name" class="anchor"></a><code>name : <a href="index.html#type-record_name">record_name</a>;</code></td></tr><tr id="type-simple_expression.field" class="anchored"><td class="def field"><a href="#type-simple_expression.field" class="anchor"></a><code>field : string;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_expression.RecordUpdate" class="anchored"><td class="def constructor"><a href="#type-simple_expression.RecordUpdate" class="anchor"></a><code>| </code><code><span class="constructor">RecordUpdate</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_expression.record" class="anchored"><td class="def field"><a href="#type-simple_expression.record" class="anchor"></a><code>record : <span><a href="index.html#type-expression">expression</a> option</span>;</code></td></tr><tr id="type-simple_expression.name" class="anchored"><td class="def field"><a href="#type-simple_expression.name" class="anchor"></a><code>name : <a href="index.html#type-record_name">record_name</a>;</code></td></tr><tr id="type-simple_expression.updates" class="anchored"><td class="def field"><a href="#type-simple_expression.updates" class="anchor"></a><code>updates : <span><a href="index.html#type-record_update">record_update</a> list</span>;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_expression.TryCatch" class="anchored"><td class="def constructor"><a href="#type-simple_expression.TryCatch" class="anchor"></a><code>| </code><code><span class="constructor">TryCatch</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_expression.body" class="anchored"><td class="def field"><a href="#type-simple_expression.body" class="anchor"></a><code>body : <a href="index.html#type-body">body</a>;</code></td></tr><tr id="type-simple_expression.ok_cases" class="anchored"><td class="def field"><a href="#type-simple_expression.ok_cases" class="anchor"></a><code>ok_cases : <span><a href="index.html#type-case_clause">case_clause</a> list</span>;</code></td></tr><tr id="type-simple_expression.catch_cases" class="anchored"><td class="def field"><a href="#type-simple_expression.catch_cases" class="anchor"></a><code>catch_cases : <span><a href="index.html#type-catch_clause">catch_clause</a> list</span>;</code></td></tr><tr id="type-simple_expression.after" class="anchored"><td class="def field"><a href="#type-simple_expression.after" class="anchor"></a><code>after : <a href="index.html#type-body">body</a>;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_expression.Tuple" class="anchored"><td class="def constructor"><a href="#type-simple_expression.Tuple" class="anchor"></a><code>| </code><code><span class="constructor">Tuple</span> <span class="keyword">of</span> <span><a href="index.html#type-expression">expression</a> list</span></code></td></tr><tr id="type-simple_expression.UnaryOperator" class="anchored"><td class="def constructor"><a href="#type-simple_expression.UnaryOperator" class="anchor"></a><code>| </code><code><span class="constructor">UnaryOperator</span> <span class="keyword">of</span> <a href="index.html#type-unary_operator">unary_operator</a> * <a href="index.html#type-expression">expression</a></code></td></tr><tr id="type-simple_expression.Variable" class="anchored"><td class="def constructor"><a href="#type-simple_expression.Variable" class="anchor"></a><code>| </code><code><span class="constructor">Variable</span> <span class="keyword">of</span> string</code></td></tr></table></dt><dt class="spec type" id="type-expression"><a href="#type-expression" class="anchor"></a><code><span class="keyword">and</span> expression</code><code> = </code><code>{</code><table class="record"><tr id="type-expression.line" class="anchored"><td class="def field"><a href="#type-expression.line" class="anchor"></a><code>line : <a href="index.html#type-line">line</a>;</code></td></tr><tr id="type-expression.simple_expression" class="anchored"><td class="def field"><a href="#type-expression.simple_expression" class="anchor"></a><code>simple_expression : <a href="index.html#type-simple_expression">simple_expression</a>;</code></td></tr></table><code>}</code></dt><dt class="spec type" id="type-qualifier"><a href="#type-qualifier" class="anchor"></a><code><span class="keyword">and</span> qualifier</code><code> = </code><table class="variant"><tr id="type-qualifier.BitsGenerator" class="anchored"><td class="def constructor"><a href="#type-qualifier.BitsGenerator" class="anchor"></a><code>| </code><code><span class="constructor">BitsGenerator</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-qualifier.pattern" class="anchored"><td class="def field"><a href="#type-qualifier.pattern" class="anchor"></a><code>pattern : <a href="index.html#type-pattern">pattern</a>;</code></td></tr><tr id="type-qualifier.expression" class="anchored"><td class="def field"><a href="#type-qualifier.expression" class="anchor"></a><code>expression : <a href="index.html#type-expression">expression</a>;</code></td></tr></table><code>}</code></td></tr><tr id="type-qualifier.Filter" class="anchored"><td class="def constructor"><a href="#type-qualifier.Filter" class="anchor"></a><code>| </code><code><span class="constructor">Filter</span> <span class="keyword">of</span> <a href="index.html#type-expression">expression</a></code></td></tr><tr id="type-qualifier.Generator" class="anchored"><td class="def constructor"><a href="#type-qualifier.Generator" class="anchor"></a><code>| </code><code><span class="constructor">Generator</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-qualifier.pattern" class="anchored"><td class="def field"><a href="#type-qualifier.pattern" class="anchor"></a><code>pattern : <a href="index.html#type-pattern">pattern</a>;</code></td></tr><tr id="type-qualifier.expression" class="anchored"><td class="def field"><a href="#type-qualifier.expression" class="anchor"></a><code>expression : <a href="index.html#type-expression">expression</a>;</code></td></tr></table><code>}</code></td></tr></table></dt><dt class="spec type" id="type-timeout"><a href="#type-timeout" class="anchor"></a><code><span class="keyword">and</span> timeout</code><code> = </code><code>{</code><table class="record"><tr id="type-timeout.time" class="anchored"><td class="def field"><a href="#type-timeout.time" class="anchor"></a><code>time : <a href="index.html#type-expression">expression</a>;</code></td></tr><tr id="type-timeout.handler" class="anchored"><td class="def field"><a href="#type-timeout.handler" class="anchor"></a><code>handler : <a href="index.html#type-body">body</a>;</code></td></tr></table><code>}</code></dt><dt class="spec type" id="type-bin_element"><a href="#type-bin_element" class="anchor"></a><code><span class="keyword">and</span> bin_element</code><code> = </code><code>{</code><table class="record"><tr id="type-bin_element.expression" class="anchored"><td class="def field"><a href="#type-bin_element.expression" class="anchor"></a><code>expression : <a href="index.html#type-expression">expression</a>;</code></td></tr><tr id="type-bin_element.size" class="anchored"><td class="def field"><a href="#type-bin_element.size" class="anchor"></a><code>size : <span><a href="index.html#type-expression">expression</a> option</span>;</code></td></tr><tr id="type-bin_element.types" class="anchored"><td class="def field"><a href="#type-bin_element.types" class="anchor"></a><code>types : <span><span><a href="index.html#type-type_specifier">type_specifier</a> list</span> option</span>;</code></td></tr></table><code>}</code></dt><dt class="spec type" id="type-record_update"><a href="#type-record_update" class="anchor"></a><code><span class="keyword">and</span> record_update</code><code> = </code><code>{</code><table class="record"><tr id="type-record_update.field" class="anchored"><td class="def field"><a href="#type-record_update.field" class="anchor"></a><code>field : <span>string option</span>;</code></td></tr><tr id="type-record_update.expression" class="anchored"><td class="def field"><a href="#type-record_update.expression" class="anchor"></a><code>expression : <a href="index.html#type-expression">expression</a>;</code></td></tr></table><code>}</code></dt><dt class="spec type" id="type-association"><a href="#type-association" class="anchor"></a><code><span class="keyword">and</span> association</code><code> = </code><code>{</code><table class="record"><tr id="type-association.kind" class="anchored"><td class="def field"><a href="#type-association.kind" class="anchor"></a><code>kind : <a href="index.html#type-association_kind">association_kind</a>;</code></td></tr><tr id="type-association.key" class="anchored"><td class="def field"><a href="#type-association.key" class="anchor"></a><code>key : <a href="index.html#type-expression">expression</a>;</code></td></tr><tr id="type-association.value" class="anchored"><td class="def field"><a href="#type-association.value" class="anchor"></a><code>value : <a href="index.html#type-expression">expression</a>;</code></td></tr></table><code>}</code></dt><dt class="spec type" id="type-pattern"><a href="#type-pattern" class="anchor"></a><code><span class="keyword">and</span> pattern</code><code> = <a href="index.html#type-expression">expression</a></code></dt><dt class="spec type" id="type-guard"><a href="#type-guard" class="anchor"></a><code><span class="keyword">and</span> guard</code><code> = <a href="index.html#type-expression">expression</a></code></dt></dl></section><section><header><h3 id="s8.5-clauses"><a href="#s8.5-clauses" class="anchor"></a>S8.5 Clauses</h3></header><dl><dt class="spec type" id="type-clause"><a href="#type-clause" class="anchor"></a><code><span class="keyword">and</span> <span>'pat clause</span></code><code> = </code><code>{</code><table class="record"><tr id="type-clause.line" class="anchored"><td class="def field"><a href="#type-clause.line" class="anchor"></a><code>line : <a href="index.html#type-line">line</a>;</code></td></tr><tr id="type-clause.patterns" class="anchored"><td class="def field"><a href="#type-clause.patterns" class="anchor"></a><code>patterns : <span><span class="type-var">'pat</span> list</span>;</code></td></tr><tr id="type-clause.guards" class="anchored"><td class="def field"><a href="#type-clause.guards" class="anchor"></a><code>guards : <span><a href="index.html#type-guard">guard</a> list</span>;</code></td></tr><tr id="type-clause.body" class="anchored"><td class="def field"><a href="#type-clause.body" class="anchor"></a><code>body : <a href="index.html#type-body">body</a>;</code></td></tr></table><code>}</code></dt><dt class="spec type" id="type-case_clause"><a href="#type-case_clause" class="anchor"></a><code><span class="keyword">and</span> case_clause</code><code> = <span><a href="index.html#type-pattern">pattern</a> <a href="index.html#type-clause">clause</a></span></code></dt><dt class="spec type" id="type-catch_clause"><a href="#type-catch_clause" class="anchor"></a><code><span class="keyword">and</span> catch_clause</code><code> = <span><a href="index.html#type-catch_pattern">catch_pattern</a> <a href="index.html#type-clause">clause</a></span></code></dt><dt class="spec type" id="type-catch_pattern"><a href="#type-catch_pattern" class="anchor"></a><code><span class="keyword">and</span> catch_pattern</code><code> = </code><code>{</code><table class="record"><tr id="type-catch_pattern.exception_" class="anchored"><td class="def field"><a href="#type-catch_pattern.exception_" class="anchor"></a><code>exception_ : <a href="index.html#type-exception_">exception_</a>;</code></td></tr><tr id="type-catch_pattern.pattern" class="anchored"><td class="def field"><a href="#type-catch_pattern.pattern" class="anchor"></a><code>pattern : <a href="index.html#type-pattern">pattern</a>;</code></td></tr><tr id="type-catch_pattern.variable" class="anchored"><td class="def field"><a href="#type-catch_pattern.variable" class="anchor"></a><code>variable : string;</code></td></tr></table><code>}</code></dt></dl></section><section><header><h3 id="s8.1:-module-declarations-and-forms"><a href="#s8.1:-module-declarations-and-forms" class="anchor"></a>S8.1: Module declarations and forms</h3></header><dl><dt class="spec type" id="type-simple_form"><a href="#type-simple_form" class="anchor"></a><code><span class="keyword">type</span> simple_form</code><code> = </code><table class="variant"><tr id="type-simple_form.Export" class="anchored"><td class="def constructor"><a href="#type-simple_form.Export" class="anchor"></a><code>| </code><code><span class="constructor">Export</span> <span class="keyword">of</span> <span><a href="index.html#type-function_">function_</a> list</span></code></td></tr><tr id="type-simple_form.Import" class="anchored"><td class="def constructor"><a href="#type-simple_form.Import" class="anchor"></a><code>| </code><code><span class="constructor">Import</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_form.module_name" class="anchored"><td class="def field"><a href="#type-simple_form.module_name" class="anchor"></a><code>module_name : string;</code></td></tr><tr id="type-simple_form.functions" class="anchored"><td class="def field"><a href="#type-simple_form.functions" class="anchor"></a><code>functions : <span><a href="index.html#type-function_">function_</a> list</span>;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_form.Module" class="anchored"><td class="def constructor"><a href="#type-simple_form.Module" class="anchor"></a><code>| </code><code><span class="constructor">Module</span> <span class="keyword">of</span> string</code></td></tr><tr id="type-simple_form.File" class="anchored"><td class="def constructor"><a href="#type-simple_form.File" class="anchor"></a><code>| </code><code><span class="constructor">File</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_form.path" class="anchored"><td class="def field"><a href="#type-simple_form.path" class="anchor"></a><code>path : string;</code></td></tr></table><code>}</code></td></tr><tr id="type-simple_form.Function" class="anchored"><td class="def constructor"><a href="#type-simple_form.Function" class="anchor"></a><code>| </code><code><span class="constructor">Function</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-simple_form.function_" class="anchored"><td class="def field"><a href="#type-simple_form.function_" class="anchor"></a><code>function_ : <a href="index.html#type-function_">function_</a>;</code></td></tr><tr id="type-simple_form.clauses" class="anchored"><td class="def field"><a href="#type-simple_form.clauses" class="anchor"></a><code>clauses : <span><a href="index.html#type-case_clause">case_clause</a> list</span>;</code></td></tr></table><code>}</code></td></tr></table></dt><dt class="spec type" id="type-form"><a href="#type-form" class="anchor"></a><code><span class="keyword">type</span> form</code><code> = </code><code>{</code><table class="record"><tr id="type-form.line" class="anchored"><td class="def field"><a href="#type-form.line" class="anchor"></a><code>line : <a href="index.html#type-line">line</a>;</code></td></tr><tr id="type-form.simple_form" class="anchored"><td class="def field"><a href="#type-form.simple_form" class="anchor"></a><code>simple_form : <a href="index.html#type-simple_form">simple_form</a>;</code></td></tr></table><code>}</code></dt><dt class="spec type" id="type-module_"><a href="#type-module_" class="anchor"></a><code><span class="keyword">type</span> module_</code><code> = <span><a href="index.html#type-form">form</a> list</span></code></dt></dl></section></div></body></html>