• Main Page
  • Files
  • File List
  • File Members

/Users/garethloy/Musimathics/Musimat1.2/MusimatTutorial/B0102.cpp

Go to the documentation of this file.
00001 #include "MusimatTutorial.h"
00002 MusimatTutorialSection(B0102) { 
00003         Print("*** B.1.2 Statements and Expressions ***");
00004         /*****************************************************************************
00005          
00006          B.1.2 Statements and Expressions
00007          
00008          Most methods read, "Do this, then do that." Each "do this" step is a statement. Sequences of state-
00009          ments are read left to right, then down the page. The elements of each statement, called expressions, 
00010          determine what the statement is about. In many programming languages (including Musimat), 
00011          semicolons (;) separate statements.
00012          
00013          Here is a simple example of two statements.
00014          The first prints "Do this", the next prints "Then do that" to the console.
00015          *****************************************************************************/
00016         
00017         Print("Do this");
00018         Print("Then do that");
00019         
00020         // Note, this comment is not a statement. All text to the end of the line is treated as a comment.
00021         
00022         /* This comment is also not a statement. */
00023         
00024         /*
00025          Comments like this one can
00026          extend over an arbitrary numbrer of lines.
00027          */
00028 }
00029 
00031 /* $Revision: 1.2 $ $Date: 2006/09/05 06:32:24 $ $Author: dgl $ $Name:  $ $Id: B0102.cpp,v 1.2 2006/09/05 06:32:24 dgl Exp $ */
00032 // The Musimat Tutorial © 2006 Gareth Loy
00033 // Derived from Chapter 9 and Appendix B of "Musimathics Vol. 1" © 2006 Gareth Loy 
00034 // and published exclusively by The MIT Press.
00035 // This program is released WITHOUT ANY WARRANTY; without even the implied 
00036 // warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
00037 // For information on usage and redistribution, and for a DISCLAIMER OF ALL
00038 // WARRANTIES, see the file, "LICENSE.txt," in this distribution.
00039 // "Musimathics" is available here:     http://mitpress.mit.edu/catalog/item/default.asp?ttype=2&tid=10916
00040 // Gareth Loy's Musimathics website:    http://www.musimathics.com/
00041 // The Musimat website:                 http://www.musimat.com/
00042 // This program is released under the terms of the GNU General Public License
00043 // available here:                      http://www.gnu.org/licenses/gpl.txt
00044 

Generated on Fri Nov 26 2010 16:18:25 for Musimat Tutorial by  doxygen 1.7.2