;;;; TASK III: LR INFIX CALCULATOR (DEMO) i i i i i i i ooooo o ooooooo ooooo ooooo I I I I I I I 8 8 8 8 8 o 8 8 I \ `+' / I 8 8 8 8 8 8 \ `-+-' / 8 8 8 ooooo 8oooo `-__|__-' 8 8 8 8 8 | 8 o 8 8 o 8 8 ------+------ ooooo 8oooooo ooo8ooo ooooo 8 Welcome to GNU CLISP 2.49 (2010-07-07) Copyright (c) Bruno Haible, Michael Stoll 1992, 1993 Copyright (c) Bruno Haible, Marcus Daniels 1994-1997 Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998 Copyright (c) Bruno Haible, Sam Steingold 1999-2000 Copyright (c) Sam Steingold, Bruno Haible 2001-2010 Type :h and hit Enter for context help. [1]> (load "two_calculators.l") ;; Loading file two_calculators.l ... ;; Loaded file two_calculators.l T [2]> (calculator-LR) Expression? 12.3 + 4.5 * 9.6 Result: 161.28 Expression? 12.3 / 4.5 - 9.6 Result: -6.866667 Expression? 100 - 50 / 5 Result: 10 Expression? 111 * 3 * 2 Result: 666