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