Skip to content

SICP metacircular evaluator #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ ClojureC provides a very simple command line compiler interface. Let's say we w

If you do the following in the `clojurec` directory

lein run -c src/cljc/cljc/core.cljc cljc.core run run
lein run -c samples/echo.cljc cljc.user run run
lein run -d cljc.user/-main run
cd run
lein run -c src/cljc/cljc/core.cljc cljc.core run/c run
lein run -c samples/echo.cljc cljc.user run/c run
lein run -d cljc.user/-main run/c
cd run/c
make

you should have a `cljc` executable in the `run` directory that acts mostly like `echo`.
Expand Down
38 changes: 38 additions & 0 deletions samples/build-metacircular.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/sh

LEIN=lein

cd ..

echo Compiling cljc.core
"$LEIN" run -c src/cljc/cljc/core.cljc cljc.core run/c run
if [ $? -ne 0 ] ; then
exit 1
fi

echo Compiling cljc.reader
"$LEIN" run -c src/cljc/cljc/reader.cljc cljc.reader run/c run
if [ $? -ne 0 ] ; then
exit 1
fi

echo Compiling cljc.analyzer
"$LEIN" run -c src/cljc/cljc/analyzer.cljc cljc.analyzer run/c run
if [ $? -ne 0 ] ; then
exit 1
fi

echo Compiling sample.metacircular
"$LEIN" run -c samples/metacircular.cljc sample.metacircular run/c run
if [ $? -ne 0 ] ; then
exit 1
fi

echo Generating driver
"$LEIN" run -d sample.metacircular/-main run/c
if [ $? -ne 0 ] ; then
exit 1
fi

cd run/c
make
Loading