c++11: step 2
authorStephen Thirlwall <sdt@dr.com>
Thu, 26 Mar 2015 22:04:35 +0000 (09:04 +1100)
committerStephen Thirlwall <sdt@dr.com>
Fri, 27 Mar 2015 09:44:42 +0000 (20:44 +1100)
commit179e8eafe4702189de965fd652ed1f3a9e150d3a
tree0c2cff8bec403973d0dea60d7aac1784f13245db
parent8bd091e3ad05ffbd6021fd45e25f76f884fc1b63
c++11: step 2

Note that the optional tests for step 1 now fail because I no longer create a
hash directly in the reader, rather handle this as a reader macro:

    { LIST } -> ( hash-map LIST )

This way, once the constructor has built the hash-map, the hash is now evaluated,
and its evaluation procedure is a no-op.

I'd like to do the same with vectors, but this isn't so easy, as we use vectors
as parameter lists in fn* later on.

ie. we'd have this situation, which is incorrect (and I don't see an obvious workaround)

    (fn* [params] body) -> (fn* (vector params) body)
cpp/Environment.cpp [new file with mode: 0644]
cpp/Environment.h [new file with mode: 0644]
cpp/MAL.h
cpp/Makefile
cpp/Reader.cpp
cpp/Types.cpp
cpp/Types.h
cpp/Validation.cpp [new file with mode: 0644]
cpp/Validation.h
cpp/step1_read_print.cpp
cpp/step2_eval.cpp [new file with mode: 0644]