📄 classforth.html
字号:
<td class="mdname1" valign="top" nowrap> <em>xt</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Execute a forth execution token.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>xt</em> </td><td>A forth execution token.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>0 or a forth execption value.</dd></dl><p>Definition at line <a class="el" href="forth_8cpp-source.html#l02311">2311</a> of file <a class="el" href="forth_8cpp-source.html">forth.cpp</a>. </td> </tr></table><a class="anchor" name="a3"></a><!-- doxytag: member="Forth::Evaluate" ref="a3" args="(const CHAR *text, uint textLength)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__forth.html#ga0">CELL</a> Forth::Evaluate </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="group__forth.html#ga2">CHAR</a> * </td> <td class="mdname" nowrap> <em>text</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__integers.html#ga6">uint</a> </td> <td class="mdname" nowrap> <em>textLength</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Evaluate (interpret) a text string.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>text</em> </td><td>Pointer to string. </td></tr> <tr><td valign="top"></td><td valign="top"><em>textLength</em> </td><td>Number of characters in string.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>0 or a forth execption value.</dd></dl><p>Definition at line <a class="el" href="forth_8cpp-source.html#l02317">2317</a> of file <a class="el" href="forth_8cpp-source.html">forth.cpp</a>. </td> </tr></table><a class="anchor" name="a4"></a><!-- doxytag: member="Forth::Push" ref="a4" args="(const CELL *cells, uint numCells)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void Forth::Push </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="group__forth.html#ga0">CELL</a> * </td> <td class="mdname" nowrap> <em>cells</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__integers.html#ga6">uint</a> </td> <td class="mdname" nowrap> <em>numCells</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Push a number of cells onto the forth parameter stack. Values are pushed in reverse order. E.g. <em>cells</em>[<em>numCells</em> -1] will be pushed first and <em>cells</em> [0] will be the top item on the stack.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>cells</em> </td><td>Pointer to values to be pushed. </td></tr> <tr><td valign="top"></td><td valign="top"><em>numCells</em> </td><td>Number of values to be pushed.</td></tr> </table></dl><p>Definition at line <a class="el" href="forth_8cpp-source.html#l02329">2329</a> of file <a class="el" href="forth_8cpp-source.html">forth.cpp</a>. </td> </tr></table><a class="anchor" name="a5"></a><!-- doxytag: member="Forth::Pop" ref="a5" args="(uint numCells)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">const <a class="el" href="group__forth.html#ga0">CELL</a> * Forth::Pop </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__integers.html#ga6">uint</a> </td> <td class="mdname1" valign="top" nowrap> <em>numCells</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Pop a number of cells off the forth parameter stack.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>numCells</em> </td><td>Number of values to be popped. This can be zero, in which case no values are removed from the stack, but a pointer to the top-most value is still returned; enabling values on the stack to read without removing them.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Pointer to top most stack value popped; other values follow this in memory. These values become invalid once any other Forth class method is called.</dd></dl><p>Definition at line <a class="el" href="forth_8cpp-source.html#l02323">2323</a> of file <a class="el" href="forth_8cpp-source.html">forth.cpp</a>. </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li>forth/<a class="el" href="forth_8h-source.html">forth.h</a><li>forth/<a class="el" href="forth_8cpp-source.html">forth.cpp</a></ul><HR><ADDRESS STYLE="align: right;"><SMALL>Generated by <A HREF="http://www.doxygen.org/index.html"><IMG SRC="doxygen.png" ALT="doxygen" ALIGN="middle" BORDER="0"></A> 1.4.4</SMALL></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -