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