In an attempt to learn GNU Flex and Yacc/Bison, I decided to implement a simple calculator which uses Lisp style prefix notation. Hopefully this will lay the groundwork for my first attempt at writing a basic Lisp/Scheme interpreter.
The interpreter is currently capable of evaluating very simple arithmetic expressions (e.g. addition and subtraction).
- clone repository
- ensure gcc, flex and yacc/bison have been installed
- cd into repository and run
make - start the interpreter using
./plisp (+ 2 2)=> 4(- 20 2)=> 18