Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
mtardy bf224030cb Update test files před 4 roky
drafts Modify drafts and tests před 4 roky
tests Add Objects with prototypes před 4 roky
.dockerignore Add Dockerfile and instructions to build with Docker před 4 roky
.gitignore Add Objects with prototypes před 4 roky
Dockerfile Update README and Dockerfile před 4 roky
Makefile Clean Makefile před 4 roky
README.md Update README and Dockerfile před 4 roky
TODO.txt Add tests and update todo před 4 roky
calc.leg Fix symbol table před 4 roky
object.c Add '*' operator for string multiplication před 4 roky
parse.leg Add Throw mechanism and hierarchy in verbose mode před 4 roky
test-incdec.txt Add tests for incdec and object instanciation před 4 roky
test-object.txt Update tests před 4 roky
test-proto.txt Add syntax to extend the language via macro před 4 roky
test-strings.txt Add '*' operator for string multiplication před 4 roky
test.txt Update test files před 4 roky
test1.txt Optimizing integers před 4 roky
test2.txt Modify drafts and tests před 4 roky
test3.txt Update test files před 4 roky

README.md

Sandbox

Build the project

Requirements

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

Build

$ make

Build with Docker

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

Usage

Single input

You can pass your program:

  • via the standard input
$ echo "a=2+3 a*2" | ./parse
$ ./parse < file
  • via a file
$ ./parse file

Multiple inputs

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 -