|
4 anos atrás | |
---|---|---|
drafts | 4 anos atrás | |
tests | 4 anos atrás | |
.dockerignore | 4 anos atrás | |
.gitignore | 4 anos atrás | |
Dockerfile | 4 anos atrás | |
Makefile | 4 anos atrás | |
README.md | 4 anos atrás | |
TODO.txt | 4 anos atrás | |
calc.leg | 4 anos atrás | |
object.c | 4 anos atrás | |
parse.leg | 4 anos atrás | |
test-incdec.txt | 4 anos atrás | |
test-object.txt | 4 anos atrás | |
test.txt | 4 anos atrás | |
test1.txt | 4 anos atrás | |
test2.txt | 4 anos atrás | |
test3.txt | 4 anos atrás |
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