|
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 | |
bootstrap.txt | před 4 roky | |
buffer.h | před 4 roky | |
calc.leg | před 4 roky | |
object.c | před 4 roky | |
parse.leg | před 4 roky | |
test-incdec.txt | před 4 roky | |
test-module.txt | před 4 roky | |
test-object.txt | před 4 roky | |
test-proto.txt | před 4 roky | |
test-require.txt | před 4 roky | |
test-runtime-error.txt | před 4 roky | |
test-slice.txt | před 4 roky | |
test-strings.txt | před 4 roky | |
test-throw.txt | před 4 roky | |
test-try-catch.txt | před 4 roky | |
test.txt | před 4 roky | |
test1.txt | před 4 roky | |
test2.txt | před 4 roky |
Please install peg/leg manually or with a package manager, for example with Homebrew:
$ brew install peg
Please install the Boehm-Demers-Weiser conservative garbage collector manually or with a package manager, for example 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/sandbox
$ docker run -it mtardy/sandbox
You can pass your program:
$ echo "a=2+3 a*2" | ./parse
$ ./parse < file
$ ./parse file
You can also pass multiple files and use -
in any order as the standard input when mixing files and standard input, for example:
$ ./parse file1 - file2 < file3
$ echo "a=2+3 a*2" | ./parse file1 file2 -