|
il y a 4 ans | |
---|---|---|
drafts | il y a 4 ans | |
.gitignore | il y a 4 ans | |
Makefile | il y a 4 ans | |
README.md | il y a 4 ans | |
calc.leg | il y a 4 ans | |
object.c | il y a 4 ans | |
test.sh | il y a 4 ans | |
test.txt | il y a 4 ans | |
test2.txt | il y a 4 ans |
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
$ echo "a=2+3 a*2" | ./calc
Simple tests:
$ ./test.sh
Custom test:
$ ./calc < test.txt