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