IF Computer > MINERVA > Example Programs > Applications > Calculator

Calculator

MINERVA
ifcomputer logo
f
Expert Services on the Web

Pocket calculator. Program is 80 lines engine plus 80 lines GUI.

The calculator is implemented as a stack automaton. A term

	state(ID,Stack,Display,Status)
describes its internal state, each pushed key drives a corresponding state transition.

The MINERVA source program is calculator.min

Refer to 'Compile', 'Go' and the other files of this directory for details.

document: http://www.ifcomputer.co.jp/MINERVA/ExamplePrograms/Applications/Calculator/print_de.html
published 2008/9/1 update 2001/3/27 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS