1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-20 10:07:45 +03:00
mal/cpp
Stephen Thirlwall 86eae5ec38 Revert { X } -> ( hash-map X ) reader macro
The macro breaks the step 2 tests.
2015-03-28 15:20:04 +11:00
..
.gitignore c++11: step 0 2015-03-27 20:44:42 +11:00
Core.cpp Revert { X } -> ( hash-map X ) reader macro 2015-03-28 15:20:04 +11:00
Debug.h c++11: step 0 2015-03-27 20:44:42 +11:00
docker.sh c++11: step 0 2015-03-27 20:44:42 +11:00
Dockerfile Use g++-4.9 instead of clang-3.5 on Linux 2015-03-28 12:17:25 +11:00
Environment.cpp c++11: step 6 2015-03-27 20:44:42 +11:00
Environment.h c++11: step 6 2015-03-27 20:44:42 +11:00
Makefile Use g++-4.9 instead of clang-3.5 on Linux 2015-03-28 12:17:25 +11:00
MAL.h c++11: step A 2015-03-27 20:44:43 +11:00
Reader.cpp Revert { X } -> ( hash-map X ) reader macro 2015-03-28 15:20:04 +11:00
ReadLine.cpp c++11: step 0 2015-03-27 20:44:42 +11:00
ReadLine.h c++11: step 0 2015-03-27 20:44:42 +11:00
README.md Add README.md 2015-03-27 20:44:43 +11:00
RefCountedPtr.h c++11: step 1 2015-03-27 20:44:42 +11:00
StaticList.h c++11: step 1 2015-03-27 20:44:42 +11:00
step0_repl.cpp c++11: step 0 2015-03-27 20:44:42 +11:00
step1_read_print.cpp c++11: step 3 2015-03-27 20:44:42 +11:00
step2_eval.cpp Revert { X } -> ( hash-map X ) reader macro 2015-03-28 15:20:04 +11:00
step3_env.cpp c++11: step A 2015-03-27 20:44:43 +11:00
step4_if_fn_do.cpp Replace table iterations with new for-loop syntax 2015-03-28 12:41:54 +11:00
step5_tco.cpp Replace table iterations with new for-loop syntax 2015-03-28 12:41:54 +11:00
step6_file.cpp Replace table iterations with new for-loop syntax 2015-03-28 12:41:54 +11:00
step7_quote.cpp Replace table iterations with new for-loop syntax 2015-03-28 12:41:54 +11:00
step8_macros.cpp Replace table iterations with new for-loop syntax 2015-03-28 12:41:54 +11:00
step9_try.cpp Replace table iterations with new for-loop syntax 2015-03-28 12:41:54 +11:00
stepA_mal.cpp Replace table iterations with new for-loop syntax 2015-03-28 12:41:54 +11:00
String.cpp c++11: step 1 2015-03-27 20:44:42 +11:00
String.h c++11: step 0 2015-03-27 20:44:42 +11:00
Types.cpp Revert { X } -> ( hash-map X ) reader macro 2015-03-28 15:20:04 +11:00
Types.h Revert { X } -> ( hash-map X ) reader macro 2015-03-28 15:20:04 +11:00
Validation.cpp c++11: step 2 2015-03-27 20:44:42 +11:00
Validation.h c++11: step 2 2015-03-27 20:44:42 +11:00

Compilation notes

Mac OSX

This C++ implementation was developed on Mac OS X Yosemite, and uses the stock g++ compiler.

The only other requirement is GNU Readline, which I got from homebrew.

brew install readline

You may need to edit the READLINE path in the Makefile.

Ubuntu 14.10/15.04

This should compile on Ubuntu 14.10 and 15.04 with the following packages

apt-get install clang-3.5 libreadline-dev make

Docker

For everyone else, there is a Dockerfile and associated docker.sh script which can be used to make and run this implementation.

* build the docker image

    ./docker build

* make the MAL binaries:

    ./docker make

* run one of the implemenations:

    ./docker run ./stepA_mal

* open a shell inside the docker container:

    ./docker run