<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>lldb.embedded_interpreter.SimpleREPL</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script type="text/javascript" src="epydoc.js"></script>
</head>
<body bgcolor="white" text="black" link="blue" vlink="#204080"
alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
bgcolor="#a0c0ff" cellspacing="0">
<tr valign="middle">
<!-- Tree link -->
<th> <a
href="module-tree.html">Trees</a> </th>
<!-- Index link -->
<th> <a
href="identifier-index.html">Indices</a> </th>
<!-- Help link -->
<th> <a
href="help.html">Help</a> </th>
<!-- Project homepage -->
<th class="navbar" align="right" width="100%">
<table border="0" cellpadding="0" cellspacing="0">
<tr><th class="navbar" align="center"
><a class="navbar" target="_top" href="http://lldb.llvm.org">LLDB python API</a></th>
</tr></table></th>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="100%">
<span class="breadcrumbs">
<a href="lldb-module.html">Package lldb</a> ::
<a href="lldb.embedded_interpreter-module.html">Module embedded_interpreter</a> ::
Class SimpleREPL
</span>
</td>
<td>
<table cellpadding="0" cellspacing="0">
<!-- hide/show private -->
<tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
onclick="toggle_private();">hide private</a>]</span></td></tr>
<tr><td align="right"><span class="options"
>[<a href="frames.html" target="_top">frames</a
>] | <a href="lldb.embedded_interpreter.SimpleREPL-class.html"
target="_top">no frames</a>]</span></td></tr>
</table>
</td>
</tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class SimpleREPL</h1><p class="nomargin-top"><span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL">source code</a></span></p>
<center>
<center> <map id="uml_class_diagram_for_lldb_emb" name="uml_class_diagram_for_lldb_emb">
<area shape="rect" id="node62" href="lldb.embedded_interpreter.SimpleREPL-class.html#__init__" title="Constructor." alt="" coords="112,305,277,324"/>
<area shape="rect" id="node62" href="lldb.embedded_interpreter.SimpleREPL-class.html#interact" title="Closely emulate the interactive Python console." alt="" coords="112,324,277,343"/>
<area shape="rect" id="node62" href="lldb.embedded_interpreter.SimpleREPL-class.html#process_input" title="lldb.embedded_interpreter.SimpleREPL.process_input" alt="" coords="112,343,277,361"/>
<area shape="rect" id="node62" href="lldb.embedded_interpreter.SimpleREPL-class.html#my_raw_input" title="lldb.embedded_interpreter.SimpleREPL.my_raw_input" alt="" coords="112,361,277,380"/>
<area shape="rect" id="node62" href="lldb.embedded_interpreter.SimpleREPL-class.html#read_py_command" title="lldb.embedded_interpreter.SimpleREPL.read_py_command" alt="" coords="112,380,277,399"/>
<area shape="rect" id="node62" href="lldb.embedded_interpreter.SimpleREPL-class.html#one_line" title="lldb.embedded_interpreter.SimpleREPL.one_line" alt="" coords="112,399,277,417"/>
<area shape="rect" id="node1" href="lldb.embedded_interpreter.SimpleREPL-class.html" title="lldb.embedded_interpreter.SimpleREPL" alt="" coords="100,273,289,423"/>
<area shape="rect" id="node63" href="javascript:void(0);" title="Reset the input buffer." alt="" coords="117,191,272,209"/>
<area shape="rect" id="node63" href="javascript:void(0);" title="Push a line to the interpreter." alt="" coords="117,209,272,228"/>
<area shape="rect" id="node63" href="javascript:void(0);" title="Write a prompt and read a line." alt="" coords="117,228,272,247"/>
<area shape="rect" id="node2" href="javascript:void(0);" title="Closely emulate the behavior of the interactive Python interpreter." alt="" coords="105,158,284,253"/>
<area shape="rect" id="node64" href="javascript:void(0);" title="Compile and run some source in the interpreter." alt="" coords="17,39,371,57"/>
<area shape="rect" id="node64" href="javascript:void(0);" title="Execute a code object." alt="" coords="17,57,371,76"/>
<area shape="rect" id="node64" href="javascript:void(0);" title="Display the syntax error that just occurred." alt="" coords="17,76,371,95"/>
<area shape="rect" id="node64" href="javascript:void(0);" title="Display the exception that just occurred." alt="" coords="17,95,371,113"/>
<area shape="rect" id="node64" href="javascript:void(0);" title="Write a string." alt="" coords="17,113,371,132"/>
<area shape="rect" id="node3" href="javascript:void(0);" title="Base class for InteractiveConsole." alt="" coords="5,6,381,138"/>
</map>
<img src="uml_class_diagram_for_lldb_emb.gif" alt='' usemap="#uml_class_diagram_for_lldb_emb" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td colspan="2" class="table-header">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td align="left"><span class="table-header">Instance Methods</span></td>
<td align="right" valign="top"
><span class="options">[<a href="#section-InstanceMethods"
class="privatelink" onclick="toggle_private();"
>hide private</a>]</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span class="summary-sig"><a href="lldb.embedded_interpreter.SimpleREPL-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
<span class="summary-sig-arg">prompt</span>,
<span class="summary-sig-arg">dict</span>)</span><br />
Constructor.</td>
<td align="right" valign="top">
<span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.__init__">source code</a></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span class="summary-sig"><a href="lldb.embedded_interpreter.SimpleREPL-class.html#interact" class="summary-sig-name">interact</a>(<span class="summary-sig-arg">self</span>)</span><br />
Closely emulate the interactive Python console.</td>
<td align="right" valign="top">
<span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.interact">source code</a></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span class="summary-sig"><a name="process_input"></a><span class="summary-sig-name">process_input</span>(<span class="summary-sig-arg">self</span>,
<span class="summary-sig-arg">in_str</span>)</span></td>
<td align="right" valign="top">
<span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.process_input">source code</a></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span class="summary-sig"><a name="my_raw_input"></a><span class="summary-sig-name">my_raw_input</span>(<span class="summary-sig-arg">self</span>,
<span class="summary-sig-arg">prompt</span>)</span></td>
<td align="right" valign="top">
<span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.my_raw_input">source code</a></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span class="summary-sig"><a name="read_py_command"></a><span class="summary-sig-name">read_py_command</span>(<span class="summary-sig-arg">self</span>)</span></td>
<td align="right" valign="top">
<span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.read_py_command">source code</a></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span class="summary-sig"><a name="one_line"></a><span class="summary-sig-name">one_line</span>(<span class="summary-sig-arg">self</span>,
<span class="summary-sig-arg">input</span>)</span></td>
<td align="right" valign="top">
<span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.one_line">source code</a></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" class="summary">
<p class="indent-wrapped-lines"><b>Inherited from <code>code.InteractiveConsole</code></b>:
<code>push</code>,
<code>raw_input</code>,
<code>resetbuffer</code>
</p>
<p class="indent-wrapped-lines"><b>Inherited from <code>code.InteractiveInterpreter</code></b>:
<code>runcode</code>,
<code>runsource</code>,
<code>showsyntaxerror</code>,
<code>showtraceback</code>,
<code>write</code>
</p>
</td>
</tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td colspan="2" class="table-header">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td align="left"><span class="table-header">Method Details</span></td>
<td align="right" valign="top"
><span class="options">[<a href="#section-MethodDetails"
class="privatelink" onclick="toggle_private();"
>hide private</a>]</span></td>
</tr>
</table>
</td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr><td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top"><td>
<h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
<span class="sig-arg">prompt</span>,
<span class="sig-arg">dict</span>)</span>
<br /><em class="fname">(Constructor)</em>
</h3>
</td><td align="right" valign="top"
><span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.__init__">source code</a></span>
</td>
</tr></table>
<p>Constructor.</p>
<p>The optional locals argument will be passed to the
InteractiveInterpreter base class.</p>
<p>The optional filename argument should specify the (file)name of the
input stream; it will show up in tracebacks.</p>
<dl class="fields">
<dt>Overrides:
code.InteractiveInterpreter.__init__
<dd><em class="note">(inherited documentation)</em></dd>
</dt>
</dl>
</td></tr></table>
</div>
<a name="interact"></a>
<div>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr><td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top"><td>
<h3 class="epydoc"><span class="sig"><span class="sig-name">interact</span>(<span class="sig-arg">self</span>)</span>
</h3>
</td><td align="right" valign="top"
><span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.interact">source code</a></span>
</td>
</tr></table>
<p>Closely emulate the interactive Python console.</p>
<p>The optional banner argument specify the banner to print before the
first interaction; by default it prints a banner similar to the one
printed by the real Python interpreter, followed by the current class
name in parentheses (so as not to confuse this with the real interpreter
-- since it's so close!).</p>
<dl class="fields">
<dt>Overrides:
code.InteractiveConsole.interact
<dd><em class="note">(inherited documentation)</em></dd>
</dt>
</dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
bgcolor="#a0c0ff" cellspacing="0">
<tr valign="middle">
<!-- Tree link -->
<th> <a
href="module-tree.html">Trees</a> </th>
<!-- Index link -->
<th> <a
href="identifier-index.html">Indices</a> </th>
<!-- Help link -->
<th> <a
href="help.html">Help</a> </th>
<!-- Project homepage -->
<th class="navbar" align="right" width="100%">
<table border="0" cellpadding="0" cellspacing="0">
<tr><th class="navbar" align="center"
><a class="navbar" target="_top" href="http://lldb.llvm.org">LLDB python API</a></th>
</tr></table></th>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
<tr>
<td align="left" class="footer">
Generated by Epydoc 3.0.1 on Fri Jul 19 13:22:36 2013
</td>
<td align="right" class="footer">
<a target="mainFrame" href="http://epydoc.sourceforge.net"
>http://epydoc.sourceforge.net</a>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
// Private objects are initially displayed (because if
// javascript is turned off then we want them to be
// visible); but by default, we want to hide them. So hide
// them unless we have a cookie that says to show them.
checkCookie();
// -->
</script>
</body>
</html>