|
il y a 4 ans | |
---|---|---|
drafts | il y a 4 ans | |
tests | il y a 4 ans | |
.dockerignore | il y a 4 ans | |
.gitignore | il y a 4 ans | |
Dockerfile | il y a 4 ans | |
Makefile | il y a 4 ans | |
README.md | il y a 4 ans | |
TODO.txt | il y a 4 ans | |
calc.leg | il y a 4 ans | |
object.c | il y a 4 ans | |
parse.leg | il y a 4 ans | |
test-incdec.txt | il y a 4 ans | |
test-object.txt | il y a 4 ans | |
test.txt | il y a 4 ans | |
test1.txt | il y a 4 ans | |
test2.txt | il y a 4 ans | |
test3.txt | il y a 4 ans |
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