Click here to Skip to main content
15,882,017 members
Articles / Desktop Programming / ATL

Visual Calc v3.0 - A new dimension for the desktop calculator

Rate me:
Please Sign up or sign in to vote.
3.62/5 (113 votes)
28 Apr 2006CPOL22 min read 348.8K   6.8K   104  
How to start programming a 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>VisualCalc Parser: AnswerItem Struct Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.5 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<h1>AnswerItem Struct Reference</h1><!-- doxytag: class="AnswerItem" --><code>#include &lt;<a class="el" href="_v_calc_parser_types_8h-source.html">VCalcParserTypes.h</a>&gt;</code>
<p>
<a href="struct_answer_item-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
Type for an entry in the answers history. 
<p>
Type defined to store a formula typed by the user (which resulted in a valid answer) and its relating value.<br>
 An invalid formula (which by definition throws an error) isn't stored until the user corrects his mistake. 
<p>

<p>
Definition at line <a class="el" href="_v_calc_parser_types_8h-source.html#l00062">62</a> of file <a class="el" href="_v_calc_parser_types_8h-source.html">VCalcParserTypes.h</a>.<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_answer_item.html#238b742ae087701dc27f69ccebcb4b01">m_strFormula</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="_v_calc_parser_types_8h.html#4f8f973df1d3250e3882077b1a157e12">VALUES_TYPE</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_answer_item.html#94607e0b2019211fc5fd90da8ac873b3">m_valResult</a></td></tr>

</table>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="238b742ae087701dc27f69ccebcb4b01"></a><!-- doxytag: member="AnswerItem::m_strFormula" ref="238b742ae087701dc27f69ccebcb4b01" args="" --><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">std::string <a class="el" href="struct_answer_item.html#238b742ae087701dc27f69ccebcb4b01">AnswerItem::m_strFormula</a>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="_v_calc_parser_types_8h-source.html#l00063">63</a> of file <a class="el" href="_v_calc_parser_types_8h-source.html">VCalcParserTypes.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="94607e0b2019211fc5fd90da8ac873b3"></a><!-- doxytag: member="AnswerItem::m_valResult" ref="94607e0b2019211fc5fd90da8ac873b3" args="" --><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="_v_calc_parser_types_8h.html#4f8f973df1d3250e3882077b1a157e12">VALUES_TYPE</a> <a class="el" href="struct_answer_item.html#94607e0b2019211fc5fd90da8ac873b3">AnswerItem::m_valResult</a>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="_v_calc_parser_types_8h-source.html#l00064">64</a> of file <a class="el" href="_v_calc_parser_types_8h-source.html">VCalcParserTypes.h</a>.    </td>
  </tr>
</table>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="_v_calc_parser_types_8h-source.html">VCalcParserTypes.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Mon Feb 6 23:55:55 2006 for VisualCalc Parser by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.5 </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
Software Developer (Senior) Accenture Technology Solutions
France France

Toxcct is an electronics guy who felt in love with programming at the age of 10 when he discovered C to play with Texas-Instruments calculators.

Few years later, he discovered "The C++ Language" from Bjarne Stroustrup ; a true transformation in his life.

Now, toxcct is experiencing the Web by developing Siebel CRM Applications for a living. He also respects very much the Web Standards (YES, a HTML/CSS code MUST validate !), and plays around with HTML/CSS/Javascript/Ajax/PHP and such.

_____

After four years of services as a Codeproject MVP, toxcct is now taking some distance as he doesn't like how things are going on the forums. he particularly doesn't accept how some totally ignorant people got the MVP Reward by only being arrogant and insulting while replying on the technical forums.



Comments and Discussions