Lines Matching refs:calculator
142 * RPN Calc:: Reverse polish notation calculator;
144 * Infix Calc:: Infix (algebraic) notation calculator.
150 * Exercises:: Ideas for improving the multi-function calculator.
176 * Decl: Mfcalc Decl. Bison declarations for multi-function calculator.
177 * Rules: Mfcalc Rules. Grammar rules for the calculator.
645 symbol. For example, in a calculator, an expression typically has a
1352 reverse polish notation calculator, an algebraic (infix) notation
1353 calculator, and a multi-function calculator. All three have been tested
1355 desk-top calculator.
1362 * RPN Calc:: Reverse polish notation calculator;
1364 * Infix Calc:: Infix (algebraic) notation calculator.
1370 * Exercises:: Ideas for improving the multi-function calculator.
1376 @cindex polish notation calculator
1378 @cindex calculator, simple
1381 notation} calculator (a calculator using postfix operators). This example
1385 The source code for this calculator is named @file{rpcalc.y}. The
1402 calculator. As in C, comments are placed between @samp{/*@dots{}*/}.
1405 /* Reverse polish notation calculator. */
1451 Here are the grammar rules for the reverse polish notation calculator.
1519 is legitimate to type @kbd{Ctrl-d} right after you start the calculator.
1629 calculator. This
1741 cause the calculator program to exit. This is not clean behavior for a
1742 real calculator, but it is adequate for the first example.
1820 @cindex infix notation calculator
1822 @cindex calculator, infix notation
1827 @file{calc.y}, an infix desk-top calculator.
1830 /* Infix notation calculator. */
1917 calculator program to exit. Now we show how to rectify this deficiency.
1944 signal that is normally fatal. A real calculator program must handle this
1952 @cindex location tracking calculator
1954 @cindex calculator, location tracking
1956 This example extends the infix notation calculator with location
1958 the sake of clarity, this example is a simple integer calculator, since
1971 The C and Bison declarations for the location tracking calculator are
1972 the same as the declarations for the infix notation calculator.
1975 /* Location tracking calculator. */
2157 @cindex multi-function calculator
2159 @cindex calculator, multi-function
2164 be nice to have a calculator that provides other mathematical functions such
2167 It is easy to add new operators to the infix calculator as long as they are
2178 At the same time, we will add memory to the calculator, by allowing you
2180 Here is a sample session with the multi-function calculator:
2202 * Decl: Mfcalc Decl. Bison declarations for multi-function calculator.
2203 * Rules: Mfcalc Rules. Grammar rules for the calculator.
2210 Here are the C and Bison declarations for the multi-function calculator.
2266 Here are the grammar rules for the multi-function calculator.
2307 The multi-function calculator requires a symbol table to keep track of the
2416 files, you can add additional functions to the calculator.
3035 For example, the calculator calculates properly because the value
3059 @acronym{RPN} and infix calculator examples (@pxref{RPN Calc, ,Reverse Polish
5070 For example, suppose the infix calculator has read @samp{1 + 5 *}, with a
5082 For example, if the infix calculator's parser stack contains this:
5898 rest of the input file and check it for errors; a calculator should accept
6725 calculator (@pxref{Mfcalc Decl, ,Declarations for @code{mfcalc}}):
7914 My simple calculator supports variables, assignments, and functions,