<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Functions (baguette_sharp.Baguette_sharp.Functions)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.1.0"/><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">baguette_sharp</a> &#x00BB; <a href="../index.html">Baguette_sharp</a> &#x00BB; Functions</nav><header class="odoc-preamble"><h1>Module <code><span>Baguette_sharp.Functions</span></code></h1><p>The Function Module : Handles called function and dispatch commands</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value" id="val-main_ram" class="anchored"><a href="#val-main_ram" class="anchor"></a><code><span><span class="keyword">val</span> main_ram : <span><span>( string, <a href="../Parser/index.html#type-parameters">Parser.parameters</a> )</span> <span class="xref-unresolved">Stdlib</span>.Hashtbl.t</span></span></code></div><div class="spec-doc"><p>The main Hashtbl for variable storage</p></div></div><div class="odoc-spec"><div class="spec value" id="val-boucle" class="anchored"><a href="#val-boucle" class="anchor"></a><code><span><span class="keyword">val</span> boucle : <span><span class="xref-unresolved">Str</span>.regexp <span class="arrow">&#45;&gt;</span></span> <span>string <span class="arrow">&#45;&gt;</span></span> <span><span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> list</span> <span class="arrow">&#45;&gt;</span></span> string</span></code></div><div class="spec-doc"><p>Replaces all occurence of a string by another</p></div></div><div class="odoc-spec"><div class="spec value" id="val-print" class="anchored"><a href="#val-print" class="anchor"></a><code><span><span class="keyword">val</span> print : <span><span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Recursively prints the list of argument</p></div></div><div class="odoc-spec"><div class="spec value" id="val-printf" class="anchored"><a href="#val-printf" class="anchor"></a><code><span><span class="keyword">val</span> printf : <span><span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Printf the input</p></div></div><div class="odoc-spec"><div class="spec value" id="val-add_variable" class="anchored"><a href="#val-add_variable" class="anchor"></a><code><span><span class="keyword">val</span> add_variable : <span><span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Creates a new variable into the ram</p></div></div><div class="odoc-spec"><div class="spec value" id="val-read_variable" class="anchored"><a href="#val-read_variable" class="anchor"></a><code><span><span class="keyword">val</span> read_variable : <span><span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Access to a variable stored in the ram</p></div></div><div class="odoc-spec"><div class="spec value" id="val-read_entry" class="anchored"><a href="#val-read_entry" class="anchor"></a><code><span><span class="keyword">val</span> read_entry : <span><span><span class="type-var">'a</span> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Reads the standard input</p></div></div><div class="odoc-spec"><div class="spec value" id="val-recognize_function" class="anchored"><a href="#val-recognize_function" class="anchor"></a><code><span><span class="keyword">val</span> recognize_function : <span>string <span class="arrow">&#45;&gt;</span></span> <span><span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Takes a string and a list of argument and dispatch the called instruction</p></div></div></div></body></html>