Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

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

, 28 Apr 2006
How to start programming a parser.
visualcalc224_bin_20060206.zip
Visual Calc.exe
visualcalc224_lib_20060206.zip
mfc42.dll
msvcrt.dll
msvcp60.dll
visualcalc224_src_20060206.zip
res
About.ico
AboutFrame.bmp
CodeProject.ico
Doxygen.ico
function.ico
Help.ico
ico00001.ico
operator.ico
switch.ico
Visual Calc.ico
visualst.ico
WinXP.ico
Visual Calc.dsw
Visual Calc.dsp
visualcalc300_bin_20060418.zip
VisualCalc.exe
VCalcParser.dll
visualcalc300_lib_20060418.zip
msvcrt.dll
msvcp71.dll
msvcr71.dll
MFC71.dll
visualcalc300_parser-doc_20060418.zip
html
class_c_answer_requested_not_found_exception.png
class_c_closing_parenthesis_expected_exception.png
class_c_constant_assignation_exception.png
class_c_division_by_zero_exception.png
class_c_domain_exception.png
class_c_dom_parameters_must_be_integers_exception.png
class_c_dom_parameters_must_be_positive_exception.png
class_c_dom_parameter_must_be_an_integer_exception.png
class_c_dom_parameter_must_be_positive_exception.png
class_c_factorial_def_for_positive_ints_exception.png
class_c_function_exception.png
class_c_function_not_supported_exception.png
class_c_illegal_use_of_fonction_name_exception.png
class_c_implicit_multiplication_exception.png
class_c_literal_assignation_exception.png
class_c_mathematic_exception.png
class_c_mathematic_expression_expected_exception.png
class_c_math_parameter_must_be_an_integer_exception.png
class_c_math_parameter_must_be_positive_exception.png
class_c_n_must_be_positive_exception.png
class_c_parameter_exception.png
class_c_parameter_out_of_range_exception.png
class_c_parser_exception.png
class_c_period_unexpected_exception.png
class_c_p_must_be_positive_exception.png
class_c_p_must_be_smaller_than_n_exception.png
class_c_syntax_exception.png
class_c_too_few_parameters_exception.png
class_c_too_many_parameters_exception.png
class_c_undefined_variable_exception.png
class_c_unexpected_character_exception.png
class_c_unknown_exception.png
class_c_unknown_function_called_exception.png
class_c_variable_exception.png
class_c_v_calc_parser_exception.png
Copie de form_0.png
Copie de form_1.png
Copie de form_10.png
Copie de form_11.png
Copie de form_12.png
Copie de form_2.png
Copie de form_6.png
Copie de form_7.png
Copie de form_8.png
Copie de form_9.png
doxygen.png
form_0.png
form_1.png
form_10.png
form_11.png
form_12.png
form_2.png
form_3.png
form_4.png
form_5.png
form_6.png
form_7.png
form_8.png
form_9.png
tab_b.gif
tab_l.gif
tab_r.gif
_formulas.tex
visualcalc300_parser-src_20060418.zip
VCalcParser.lib
visualcalc300_src_20060418.zip
bin
lib
VCalcParser
doc
Doxygen.cfg
VisualCalc
res
About.ico
AboutFrame.bmp
CodeProject.ico
Doxygen.ico
errcodes.ico
function.ico
Help.ico
operator.ico
switch.ico
VisualCalc.ico
VisualCalc.manifest
visualst.ico
WinXP.ico
VCalcParser.lib
visualcalcparser250_doc_20060206.zip
doc
Doxygen.cfg
html
class_c_answer_requested_not_found_exception.png
class_c_closing_parenthesis_expected_exception.png
class_c_constant_assignation_exception.png
class_c_division_by_zero_exception.png
class_c_domain_exception.png
class_c_dom_parameters_must_be_integers_exception.png
class_c_dom_parameters_must_be_positive_exception.png
class_c_dom_parameter_must_be_an_integer_exception.png
class_c_dom_parameter_must_be_positive_exception.png
class_c_factorial_def_for_positive_ints_exception.png
class_c_function_exception.png
class_c_function_not_supported_exception.png
class_c_illegal_use_of_fonction_name_exception.png
class_c_implicit_multiplication_exception.png
class_c_literal_assignation_exception.png
class_c_mathematic_exception.png
class_c_mathematic_expression_expected_exception.png
class_c_math_parameter_must_be_an_integer_exception.png
class_c_math_parameter_must_be_positive_exception.png
class_c_n_must_be_positive_exception.png
class_c_parameter_exception.png
class_c_parameter_out_of_range_exception.png
class_c_parser_exception.png
class_c_period_unexpected_exception.png
class_c_p_must_be_positive_exception.png
class_c_p_must_be_smaller_than_n_exception.png
class_c_syntax_exception.png
class_c_too_few_parameters_exception.png
class_c_too_many_parameters_exception.png
class_c_undefined_variable_exception.png
class_c_unexpected_character_exception.png
class_c_unknown_exception.png
class_c_unknown_function_called_exception.png
class_c_variable_exception.png
class_c_v_calc_parser_exception.png
Copie de form_0.png
Copie de form_1.png
Copie de form_10.png
Copie de form_11.png
Copie de form_12.png
Copie de form_2.png
Copie de form_6.png
Copie de form_7.png
Copie de form_8.png
Copie de form_9.png
doxygen.png
form_0.png
form_1.png
form_10.png
form_11.png
form_12.png
form_2.png
form_3.png
form_4.png
form_5.png
form_6.png
form_7.png
form_8.png
form_9.png
tab_b.gif
tab_l.gif
tab_r.gif
_formulas.tex
visualcalcparser250_src_20060206.zip
visualcalc_demo.zip
Visual Calc.exe
visualcalc_libs.zip
msvcp60.dll
mfc42.dll
msvcrt.dll
visualcalc_parser.zip
visualcalc_src.zip
About.ico
AboutFrame.bmp
CodeProject.ico
function.ico
Help.ico
ico00001.ico
operator.ico
switch.ico
Visual Calc.ico
visualst.ico
WinXP.ico
Visual Calc.dsp
Visual Calc.dsw
<!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: Main Page</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 id="current"><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="annotated.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
  </ul></div>
<h1>VisualCalc Parser Documentation</h1>
<p>
<dl compact><dt><b>Project name:</b></dt><dd>VisualCalc Parser</dd></dl>
<dl compact><dt><b>Version:</b></dt><dd>3.0</dd></dl>
<dl compact><dt><b>Release:</b></dt><dd>16 April 2006</dd></dl>
<dl compact><dt><b>Author:</b></dt><dd><a href="http://www.codeproject.com/script/profile/whos_who.asp?id=741829">toxcct</a></dd></dl>
<dl compact><dt><b>Copyright:</b></dt><dd>&copy;2004-2006 toxcct for <a href="http://www.codeproject.com">The CodeProject</a></dd></dl>
<dl compact><dt><b>Homepage:</b></dt><dd><a href="http://www.codeproject.com/cpp/visualcalc.asp">http://www.codeproject.com/cpp/visualcalc.asp</a></dd></dl>
<dl compact><dt><b>License:</b></dt><dd>VisualCalc is released and distributed under the terms of the GNU <a href="http://www.gnu.org/licenses/gpl.html">General Public License</a>.<br>
 This code may be used in compiled form in any way you desire (including commercial use). The code may be redistributed unmodified by any means providing it is not sold for profit without the authors written consent, and providing that this notice and the authors name and all copyright notices remains intact. However, this file and the accompanying source code may not be hosted on a website or bulletin board without the authors written permission.<br>
 This software is provided <em>"as is"</em> without express or implied warranty. The authors can be held responsible if the program's undesirable "features" causes any damage or loss of time or data.</dd></dl>
<dl compact><dt><b>Plateform:</b></dt><dd>Every plateform which provides a standard compliant compiler.<br>
 Not tested yet for any other plateforms than Microsoft Windows<sup><small>&reg;</small></sup> 2000, XP, 2003.<br>
 Initially written with Microsoft Visual C++<sup><small>&reg;</small></sup> 6.<br>
 Project migrated for Microsoft Visual C++<sup><small>&reg;</small></sup> .NET 2003.</dd></dl>
<dl compact><dt><b>Parser compilation instructions:</b></dt><dd>The project is designed to compile with any C++ standard compliant.<br>
 The requirement is to place the parser source files in your project and to <code>include "VCalcParser.h"</code>.<br>
 If compiling with Visual C++<sup><small>&reg;</small></sup> 6, .NET 2003 or later, the parser can be set in a Win32 DLL project.<br>
 In such a project, you have to define the following macros (ignored if non-Microsoft compiler):<ul>
<li><code>VCALCPARSER_DLL</code> : This macro tells the compiler that the parser is in a DLL project.<br>
</li><li><code>VCALCPARSER_EXPORTS</code> : This macro defines the directions of symbols imports/exports.<br>
<br>
 These macros must be define BEFORE including the header, and <code>VCALCPARSER_DLL</code> must be defined in either the DLL and any projects that uses the parser (commonly, in stdafx.h).<br>
 The DLL project must also set its "Code generation" | "Runtime library" to "Multithreaded DLL" (/MD in release or /MDd in debug compilation) due to heap deallocation reasons.</li></ul>
</dd></dl>
<dl compact><dt><b>History of the public releases:</b></dt><dd><ul>
<li><b>3.0</b> - <em>16/04/2006</em><ul>
<li>Separation of the parser in its own DLL project<br>
<br>
</li></ul>
</li><li><b>2.5</b> - <em>06/02/2006</em><ul>
<li>New sqrtn() user function</li><li>Doxygen comments</li><li>Fix pow() calculation error</li><li>Fix variables handling exception case</li><li>Change in the reading stream function<br>
<br>
</li></ul>
</li><li><b>2.3</b> - <em>19/10/2005</em><ul>
<li>Separation of the parser in its own project</li><li>Use of the Standard library only for standard compliance</li><li>Use of new <code>long double</code> data type</li><li>Errors management by exceptions<br>
<br>
</li></ul>
</li><li><b>2.2</b> - <em>26/01/2005</em><ul>
<li>Errors management by codes<br>
<br>
</li></ul>
</li><li><b>2.1</b> - <em>28/12/2004</em><ul>
<li>New user functions</li><li>New operators<br>
<br>
</li></ul>
</li><li><b>2.0</b> - <em>13/11/2004</em><ul>
<li>New list of the user functions</li><li>New sequence operator (',')</li><li>Source code uniformization<br>
<br>
</li></ul>
</li><li><b>1.0</b> - <em>05/10/2004</em><ul>
<li>First release (still mixed into the GUI project)</li><li>Lists of answers and variables available for the user </li></ul>
</li></ul>
</dd></dl>
<hr size="1"><address style="align: right;"><small>Generated on Mon Apr 17 23:34:14 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)

Share

About the Author

toxcct
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.
 


| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 28 Apr 2006
Article Copyright 2004 by toxcct
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid