|
преди 4 години | |
---|---|---|
drafts | преди 4 години | |
tests | преди 4 години | |
.dockerignore | преди 4 години | |
.gitignore | преди 4 години | |
Dockerfile | преди 4 години | |
LICENSE.txt | преди 4 години | |
Makefile | преди 4 години | |
README.md | преди 4 години | |
TODO.txt | преди 4 години | |
bench-fib.txt | преди 4 години | |
bench-sieve.txt | преди 4 години | |
bootstrap.txt | преди 4 години | |
buffer.h | преди 4 години | |
calc.leg | преди 4 години | |
object.c | преди 4 години | |
parse.leg | преди 4 години | |
test-error.txt | преди 4 години | |
test-incdec.txt | преди 4 години | |
test-module.txt | преди 4 години | |
test-namespace.txt | преди 4 години | |
test-object.txt | преди 4 години | |
test-proto.txt | преди 4 години | |
test-require.txt | преди 4 години | |
test-runtime-error.txt | преди 4 години | |
test-slice.txt | преди 4 години | |
test-splice.txt | преди 4 години | |
test-strings.txt | преди 4 години | |
test-switch.txt | преди 4 години | |
test-throw.txt | преди 4 години | |
test-try-catch.txt | преди 4 години | |
test.txt | преди 4 години | |
test1.txt | преди 4 години | |
test2.txt | преди 4 години |
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 -