forked from kanaka/mal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kanaka#288 from dubek/yorick
Yorick implementation
- Loading branch information
Showing
24 changed files
with
2,752 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM ubuntu:xenial | ||
MAINTAINER Joel Martin <github@martintribe.org> | ||
|
||
########################################################## | ||
# General requirements for testing or common across many | ||
# implementations | ||
########################################################## | ||
|
||
RUN apt-get -y update | ||
|
||
# Required for running tests | ||
RUN apt-get -y install make python | ||
|
||
# Some typical implementation and test requirements | ||
RUN apt-get -y install curl libreadline-dev libedit-dev | ||
|
||
RUN mkdir -p /mal | ||
WORKDIR /mal | ||
|
||
########################################################## | ||
# Specific implementation requirements | ||
########################################################## | ||
|
||
RUN apt-get -y install yorick yorick-yeti yorick-yeti-regex | ||
|
||
ENV HOME /mal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
SOURCES_BASE = hash.i types.i reader.i printer.i | ||
SOURCES_LISP = env.i core.i stepA_mal.i | ||
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP) | ||
|
||
.PHONY: all dist clean stats stats-lisp | ||
|
||
all: dist | ||
|
||
dist: mal | ||
|
||
mal: $(SOURCES) | ||
echo "#!/usr/bin/yorick -batch" > $@ | ||
cat $+ | grep -v "^require," >> $@ | ||
chmod +x $@ | ||
|
||
clean: | ||
rm -f mal | ||
|
||
stats: $(SOURCES) | ||
@wc $^ | ||
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*//|^[[:space:]]*$$" $^ | wc` "[comments/blanks]" | ||
stats-lisp: $(SOURCES_LISP) | ||
@wc $^ | ||
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*//|^[[:space:]]*$$" $^ | wc` "[comments/blanks]" |
Oops, something went wrong.