|
před 4 roky | |
---|---|---|
drafts | před 4 roky | |
tests | před 4 roky | |
.dockerignore | před 4 roky | |
.gitignore | před 4 roky | |
Dockerfile | před 4 roky | |
Makefile | před 4 roky | |
README.md | před 4 roky | |
TODO.txt | před 4 roky | |
calc.leg | před 4 roky | |
object.c | před 4 roky | |
parse.leg | před 4 roky | |
test.txt | před 4 roky | |
test1.txt | před 4 roky | |
test2.txt | před 4 roky | |
test3.txt | před 4 roky |
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