Merge pull request #110 from gnprice/compile

Several fixes to demo instructions in README
This commit is contained in:
Max Brunsfeld 2017-10-31 09:43:42 -07:00 committed by GitHub
commit 7802bb3fcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,9 +136,8 @@ To create the parser, compile this file like this:
```sh
clang++ -std=c++11 \
-I tree-sitter/include \
-L tree-sitter/out/Release \
-l compiler \
arithmetic_grammar.cc \
"$(find tree-sitter/out/Release -name libcompiler.a)" \
-o arithmetic_grammar
```
@ -208,9 +207,8 @@ To demo this parser's capabilities, compile this program like this:
```sh
clang \
-I tree-sitter/include \
-L tree-sitter/out/Debug \
-l runtime \
arithmetic_parser.c test_parser.c \
test_parser.c arithmetic_parser.c \
"$(find tree-sitter/out/Release -name libruntime.a)" \
-o test_parser
./test_parser