Lines Matching refs:calculator
143 * RPN Calc:: Reverse polish notation calculator;
145 * Infix Calc:: Infix (algebraic) notation calculator.
151 * Exercises:: Ideas for improving the multi-function calculator.
177 * Mfcalc Declarations:: Bison declarations for multi-function calculator.
178 * Mfcalc Rules:: Grammar rules for the calculator.
695 symbol. For example, in a calculator, an expression typically has a
1411 reverse polish notation calculator, an algebraic (infix) notation
1412 calculator --- later extended to track ``locations'' ---
1413 and a multi-function calculator. All
1421 * RPN Calc:: Reverse polish notation calculator;
1423 * Infix Calc:: Infix (algebraic) notation calculator.
1429 * Exercises:: Ideas for improving the multi-function calculator.
1435 @cindex polish notation calculator
1437 @cindex calculator, simple
1440 notation} calculator (a calculator using postfix operators). This example
1444 The source code for this calculator is named @file{rpcalc.y}. The
1461 calculator. As in C, comments are placed between @samp{/*@dots{}*/}.
1464 /* Reverse polish notation calculator. */
1510 Here are the grammar rules for the reverse polish notation calculator.
1586 is legitimate to type @kbd{Ctrl-d} right after you start the calculator.
1699 calculator. This
1813 cause the calculator program to exit. This is not clean behavior for a
1814 real calculator, but it is adequate for the first example.
1893 @cindex infix notation calculator
1895 @cindex calculator, infix notation
1900 @file{calc.y}, an infix desk-top calculator.
1903 /* Infix notation calculator. */
2003 calculator program to exit. Now we show how to rectify this deficiency.
2031 signal that is normally fatal. A real calculator program must handle this
2039 @cindex location tracking calculator
2041 @cindex calculator, location tracking
2043 This example extends the infix notation calculator with location
2045 the sake of clarity, this example is a simple integer calculator, since
2058 The C and Bison declarations for the location tracking calculator are
2059 the same as the declarations for the infix notation calculator.
2062 /* Location tracking calculator. */
2251 @cindex multi-function calculator
2253 @cindex calculator, multi-function
2258 be nice to have a calculator that provides other mathematical functions such
2261 It is easy to add new operators to the infix calculator as long as they are
2272 At the same time, we will add memory to the calculator, by allowing you
2274 Here is a sample session with the multi-function calculator:
2296 * Mfcalc Declarations:: Bison declarations for multi-function calculator.
2297 * Mfcalc Rules:: Grammar rules for the calculator.
2304 Here are the C and Bison declarations for the multi-function calculator.
2361 Here are the grammar rules for the multi-function calculator.
2406 The multi-function calculator requires a symbol table to keep track of the
2516 files, you can add additional functions to the calculator.
3507 For example, the calculator calculates properly because the value
3531 RPN and infix calculator examples (@pxref{RPN Calc, ,Reverse Polish
6631 For example, suppose the infix calculator has read @samp{1 + 5 *}, with a
6643 For example, if the infix calculator's parser stack contains this:
7974 rest of the input file and check it for errors; a calculator should accept
9030 calculator, @code{mfcalc} (@pxref{Multi-function Calc}). To enable run-time
9206 calculator (@pxref{Mfcalc Declarations, ,Declarations for @code{mfcalc}}):
11305 My simple calculator supports variables, assignments, and functions,