Add unit test for stack

- Also, fix bug where trees pushed onto the stack were not retained
This commit is contained in:
Max Brunsfeld 2014-06-03 13:19:49 -07:00
parent baec9f2c9a
commit 63cde3967c
7 changed files with 188 additions and 7 deletions

View file

@ -0,0 +1,5 @@
#include "tree_sitter/runtime.h"
#include <vector>
ts_tree ** tree_array(std::vector<ts_tree *> trees);