add template for directives

This commit is contained in:
mhoffm
2021-09-17 20:53:40 +02:00
committed by Michael Hoffmann
parent 67a5c19755
commit c0513ba689
1582 changed files with 28118 additions and 16805 deletions

View File

@@ -8,7 +8,7 @@ fuzz: fuzzer hcl.dict
.PHONY: clean
clean:
rm fuzzer parser.o scanner.o libtree-sitter.a *.log
rm -f fuzzer parser.o scanner.o libtree-sitter.a *.log
fuzzer: parser.o scanner.o libtree-sitter.a
clang++ -o fuzzer ${FUZZFLAGS} -std=c++11 fuzzer.cc -Itree-sitter/lib/include scanner.o parser.o libtree-sitter.a
@@ -21,6 +21,8 @@ parser.o: ../src/parser.c
hcl.dict: ../grammar.js
python gen-dict.py ../src/grammar.json > hcl.dict
echo '"$${"' >> hcl.dict
echo '"%{"' >> hcl.dict
libtree-sitter.a:
make -C tree-sitter