Click here to Skip to main content
15,892,537 members
Articles / Programming Languages / C#

An extensible math expression parser with plug-ins

Rate me:
Please Sign up or sign in to vote.
4.92/5 (147 votes)
13 Mar 2008CPOL51 min read 1.4M   29K   364  
Design and code for an extensible, maintainable, robust, and easy to use math parser.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>MTParserLib: MTParserCompiler::SOpStackItem Struct Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.4 -->
<div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<div class="nav">
<a class="el" href="classMTParserCompiler.html">MTParserCompiler</a>::<a class="el" href="structMTParserCompiler_1_1SOpStackItem.html">SOpStackItem</a></div>
<h1>MTParserCompiler::SOpStackItem Struct Reference</h1><!-- doxytag: class="MTParserCompiler::SOpStackItem" --><a href="structMTParserCompiler_1_1SOpStackItem-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>

<p>

<p>
Definition at line <a class="el" href="MTParserCompiler_8h-source.html#l00079">79</a> of file <a class="el" href="MTParserCompiler_8h-source.html">MTParserCompiler.h</a>.<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0"></a><!-- doxytag: member="MTParserCompiler::SOpStackItem::SOpStackItem" ref="a0" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMTParserCompiler_1_1SOpStackItem.html#a0">SOpStackItem</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o0"></a><!-- doxytag: member="MTParserCompiler::SOpStackItem::precedence" ref="o0" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMTParserCompiler_1_1SOpStackItem.html#o0">precedence</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o1"></a><!-- doxytag: member="MTParserCompiler::SOpStackItem::exprStrPos" ref="o1" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMTParserCompiler_1_1SOpStackItem.html#o1">exprStrPos</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o2"></a><!-- doxytag: member="MTParserCompiler::SOpStackItem::endWithABlock" ref="o2" args="" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMTParserCompiler_1_1SOpStackItem.html#o2">endWithABlock</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o3"></a><!-- doxytag: member="MTParserCompiler::SOpStackItem::nbArgs" ref="o3" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMTParserCompiler_1_1SOpStackItem.html#o3">nbArgs</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o4"></a><!-- doxytag: member="MTParserCompiler::SOpStackItem::argValue" ref="o4" args="" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMTParserCompiler_1_1SOpStackItem.html#o4">argValue</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o5"></a><!-- doxytag: member="MTParserCompiler::SOpStackItem::itemType" ref="o5" args="" -->
<a class="el" href="classMTParserCompiler.html#w4">EItemType</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMTParserCompiler_1_1SOpStackItem.html#o5">itemType</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o6"></a><!-- doxytag: member="MTParserCompiler::SOpStackItem::itemID" ref="o6" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMTParserCompiler_1_1SOpStackItem.html#o6">itemID</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o7"></a><!-- doxytag: member="MTParserCompiler::SOpStackItem::pEval" ref="o7" args="" -->
<a class="el" href="classMTParserItemI.html">MTParserItemI</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMTParserCompiler_1_1SOpStackItem.html#o7">pEval</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o8"></a><!-- doxytag: member="MTParserCompiler::SOpStackItem::canDelete" ref="o8" args="" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMTParserCompiler_1_1SOpStackItem.html#o8">canDelete</a></td></tr>

</table>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="MTParserCompiler_8h-source.html">MTParserCompiler.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sun Mar 9 17:39:37 2008 for MTParserLib by&nbsp;
<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>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Canada Canada
Software Engineer working at a fun and smart startup company

Comments and Discussions