Skip to content
/ kamin Public
forked from automata/kamin

Tweaks to the cpp interpreter code so it compiles without warnings and errors on latest g++

Notifications You must be signed in to change notification settings

niloct/kamin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Programming Languages: An Interpreter-Based Approach, Addison-Wesley, 1990 by Sam Kamin http://loome.cs.uiuc.edu/kamin/pubs.html

  • pascal/ (Original Kamin's interpreters in Pascal)
  • cpp/ (Rewrite (from scratch) of Kamin's interpreters in C++ by Tim Budd)

Compiling the cpp interpreter

The original Makefile in cpp/ directory was modified and clean and all rules added. So, to compile just type make at that directory as usual. It will build 8 executables, one for each chapter of the book (chap1 to chap8).

The libraries ncurses and readline are used in the cpp interpreter, to enable history of commands and arrow key support. Hence, they should be installed in your operating system before compilation:

MAC OS X

Using brew: brew install readline ncurses

Linux

Using apt-get: sudo apt install libncurses5-dev libreadline-dev

About

Tweaks to the cpp interpreter code so it compiles without warnings and errors on latest g++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OpenEdge ABL 53.6%
  • TeX 22.3%
  • C++ 12.1%
  • NewLisp 4.6%
  • SMT 3.3%
  • Scheme 2.0%
  • Other 2.1%