Like "Write Yourself a Scheme in 48 Hours", but in Agda
Agda
51
25 commits
updated Apr 18, 2018
This is very much a work in progress. I'm trying to learn Agda, and it seems that there aren't enough longer tutorials.
Table of Contents
The following lists the parts of "Write Yourself A Scheme" and whether or not they're implemented:
This Scheme doesn't come nearly as close to the one in that Wikibook to being R5RS-compliant. In particular, it is missing:
The focus is on practical programming with Agda, not on getting everything right or creating a "true" Scheme.
If you use the Nix package manager, you can use
nix-shell to jump into a shell with
Building with nix-build doesn't currently work.
Do this:
for project in "agda/agda-stdlib" "gallais/agdARGS" "gallais/agdarsec"; do
git clone "https://github.com/$project" || true
done
agda --library-file=./libraries \
--library=standard-library \
--library=agdarsec \
--library=agdARGS \
--compile-dir=build \
-i "$PWD" \
-c Main.agda
This clones the following three libraries:
and then compiles the main file.
25 commits
Agda
94.9%
Nix
5.1%
Like "Write Yourself a Scheme in 48 Hours", but in Agda
Agda
51
25 commits
updated Apr 18, 2018
This is very much a work in progress. I'm trying to learn Agda, and it seems that there aren't enough longer tutorials.
Table of Contents
The following lists the parts of "Write Yourself A Scheme" and whether or not they're implemented:
This Scheme doesn't come nearly as close to the one in that Wikibook to being R5RS-compliant. In particular, it is missing:
The focus is on practical programming with Agda, not on getting everything right or creating a "true" Scheme.
If you use the Nix package manager, you can use
nix-shell to jump into a shell with
Building with nix-build doesn't currently work.
Do this:
for project in "agda/agda-stdlib" "gallais/agdARGS" "gallais/agdarsec"; do
git clone "https://github.com/$project" || true
done
agda --library-file=./libraries \
--library=standard-library \
--library=agdarsec \
--library=agdARGS \
--compile-dir=build \
-i "$PWD" \
-c Main.agda
This clones the following three libraries:
and then compiles the main file.
25 commits
Agda
94.9%
Nix
5.1%