|
пре 4 година | |
---|---|---|
drafts | пре 4 година | |
tests | пре 4 година | |
.dockerignore | пре 4 година | |
.gitignore | пре 4 година | |
Dockerfile | пре 4 година | |
Makefile | пре 4 година | |
README.md | пре 4 година | |
calc.leg | пре 4 година | |
object.c | пре 4 година | |
parse.leg | пре 4 година | |
test.txt | пре 4 година | |
test1.txt | пре 4 година | |
test2.txt | пре 4 година |
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