|
4 vuotta sitten | |
---|---|---|
drafts | 4 vuotta sitten | |
tests | 4 vuotta sitten | |
.dockerignore | 4 vuotta sitten | |
.gitignore | 4 vuotta sitten | |
Dockerfile | 4 vuotta sitten | |
Makefile | 4 vuotta sitten | |
README.md | 4 vuotta sitten | |
calc.leg | 4 vuotta sitten | |
object.c | 4 vuotta sitten |
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