File: rpn.yo

package info (click to toggle)
bisonc%2B%2B 4.09.02-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,412 kB
  • ctags: 2,871
  • sloc: cpp: 9,459; ansic: 1,434; makefile: 1,091; sh: 286; yacc: 84; lex: 60
file content (7 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
The first example is that of a simple double-precision reverse polish notation
calculator (a calculator using postfix operators). This example provides a
good starting point, since operator precedence is not an issue. The second
example will illustrate how operator precedence is handled.

All sources for this calculator are found in the lurl(examples/rpn/)
directory.