101 lines
4.4 KiB
HTML
101 lines
4.4 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<!-- Created by GNU Texinfo 7.1, https://www.gnu.org/software/texinfo/ -->
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<!-- This manual documents Guile version 3.0.10.
|
||
|
|
||
|
Copyright (C) 1996-1997, 2000-2005, 2009-2023 Free Software Foundation,
|
||
|
Inc.
|
||
|
|
||
|
Copyright (C) 2021 Maxime Devos
|
||
|
|
||
|
Copyright (C) 2024 Tomas Volf
|
||
|
|
||
|
|
||
|
Permission is granted to copy, distribute and/or modify this document
|
||
|
under the terms of the GNU Free Documentation License, Version 1.3 or
|
||
|
any later version published by the Free Software Foundation; with no
|
||
|
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
|
||
|
copy of the license is included in the section entitled "GNU Free
|
||
|
Documentation License." -->
|
||
|
<title>REPL Commands (Guile Reference Manual)</title>
|
||
|
|
||
|
<meta name="description" content="REPL Commands (Guile Reference Manual)">
|
||
|
<meta name="keywords" content="REPL Commands (Guile Reference Manual)">
|
||
|
<meta name="resource-type" content="document">
|
||
|
<meta name="distribution" content="global">
|
||
|
<meta name="Generator" content=".texi2any-real">
|
||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||
|
|
||
|
<link href="index.html" rel="start" title="Top">
|
||
|
<link href="Concept-Index.html" rel="index" title="Concept Index">
|
||
|
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
|
||
|
<link href="Using-Guile-Interactively.html" rel="up" title="Using Guile Interactively">
|
||
|
<link href="Error-Handling.html" rel="next" title="Error Handling">
|
||
|
<link href="Value-History.html" rel="prev" title="Value History">
|
||
|
<style type="text/css">
|
||
|
<!--
|
||
|
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
|
||
|
div.example {margin-left: 3.2em}
|
||
|
span:hover a.copiable-link {visibility: visible}
|
||
|
-->
|
||
|
</style>
|
||
|
<link rel="stylesheet" type="text/css" href="https://www.gnu.org/software/gnulib/manual.css">
|
||
|
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body lang="en">
|
||
|
<div class="subsection-level-extent" id="REPL-Commands">
|
||
|
<div class="nav-panel">
|
||
|
<p>
|
||
|
Next: <a href="Error-Handling.html" accesskey="n" rel="next">Error Handling</a>, Previous: <a href="Value-History.html" accesskey="p" rel="prev">Value History</a>, Up: <a href="Using-Guile-Interactively.html" accesskey="u" rel="up">Using Guile Interactively</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html" title="Index" rel="index">Index</a>]</p>
|
||
|
</div>
|
||
|
<hr>
|
||
|
<h4 class="subsection" id="REPL-Commands-1"><span>4.4.4 REPL Commands<a class="copiable-link" href="#REPL-Commands-1"> ¶</a></span></h4>
|
||
|
|
||
|
<a class="index-entry-id" id="index-commands"></a>
|
||
|
<p>The REPL exists to read expressions, evaluate them, and then print their
|
||
|
results. But sometimes one wants to tell the REPL to evaluate an
|
||
|
expression in a different way, or to do something else altogether. A
|
||
|
user can affect the way the REPL works with a <em class="dfn">REPL command</em>.
|
||
|
</p>
|
||
|
<p>The previous section had an example of a command, in the form of
|
||
|
<code class="code">,option</code>.
|
||
|
</p>
|
||
|
<div class="example lisp">
|
||
|
<pre class="lisp-preformatted">scheme@(guile-user)> ,option value-history #t
|
||
|
</pre></div>
|
||
|
|
||
|
<p>Commands are distinguished from expressions by their initial comma
|
||
|
(‘<samp class="samp">,</samp>’). Since a comma cannot begin an expression in most languages,
|
||
|
it is an effective indicator to the REPL that the following text forms a
|
||
|
command, not an expression.
|
||
|
</p>
|
||
|
<p>REPL commands are convenient because they are always there. Even if the
|
||
|
current module doesn’t have a binding for <code class="code">pretty-print</code>, one can
|
||
|
always <code class="code">,pretty-print</code>.
|
||
|
</p>
|
||
|
<p>The following sections document the various commands, grouped together
|
||
|
by functionality. Many of the commands have abbreviations; see the
|
||
|
online help (<code class="code">,help</code>) for more information.
|
||
|
</p>
|
||
|
|
||
|
<ul class="mini-toc">
|
||
|
<li><a href="Help-Commands.html" accesskey="1">Help Commands</a></li>
|
||
|
<li><a href="Module-Commands.html" accesskey="2">Module Commands</a></li>
|
||
|
<li><a href="Language-Commands.html" accesskey="3">Language Commands</a></li>
|
||
|
<li><a href="Compile-Commands.html" accesskey="4">Compile Commands</a></li>
|
||
|
<li><a href="Profile-Commands.html" accesskey="5">Profile Commands</a></li>
|
||
|
<li><a href="Debug-Commands.html" accesskey="6">Debug Commands</a></li>
|
||
|
<li><a href="Inspect-Commands.html" accesskey="7">Inspect Commands</a></li>
|
||
|
<li><a href="System-Commands.html" accesskey="8">System Commands</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|