|
преди 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 години |
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