|
vor 4 Jahren | |
---|---|---|
drafts | vor 4 Jahren | |
tests | vor 4 Jahren | |
.dockerignore | vor 4 Jahren | |
.gitignore | vor 4 Jahren | |
Dockerfile | vor 4 Jahren | |
Makefile | vor 4 Jahren | |
README.md | vor 4 Jahren | |
calc.leg | vor 4 Jahren | |
object.c | vor 4 Jahren |
Please install peg/leg manually or with Homebrew:
$ brew install peg
Please install the Boehm-Demers-Weiser conservative garbage collector manually or with Homebrew:
$ brew install bdw-gc
$ make
The Docker image provides a ready to go environment to experiment with the project. Just build the image locally and run an interactive shell inside the container:
$ docker build . --tag mtardy/javascrypt
$ docker run -it mtardy/javascrypt
$ echo "a=2+3 a*2" | ./calc
or
$ ./calc < file
Simple tests:
$ tests/test.sh
Custom test:
$ ./calc < tests/test.txt