Get basic parsing working, add some unit tests

This commit is contained in:
Max Brunsfeld 2018-05-17 17:16:35 -07:00
parent ead0e31262
commit 08217fff8d
7 changed files with 138 additions and 29 deletions

14
script/fetch-test-fixtures.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
grammar_dir='fixtures/tree-sitter-rust'
grammar_url='https://github.com/tree-sitter/tree-sitter-rust'
if [ ! -d $grammar_dir ]; then
git clone $grammar_url $grammar_dir --depth=1
fi
(
cd $grammar_dir;
git fetch origin master --depth=1
git reset --hard origin/master;
)