I want to use tree-sitter-python parser in my rust code with tree-sitter rust bindingI have successfully used javascript parser but getting error when I am using python parser.
My observation:Javascript parser use c files only(parser.c and scanner.c) whereas python parser is use cpp and c both
So when I am using https://github.com/alexcrichton/cc-rs for compiling cpp and c files I am getting error like cargo:warning=tree-sitter-python\src\parser.c:13139:1: sorry, unimplemented: non-trivial designated initializers not supported
,Problem is how can I compile both files(parser.c and scanner.cpp) like
cc::Build::new() .cpp(true) .include(&dir) .file(dir.join("parser.c")) .file(dir.join("scanner.cc")) .compile("tree-sitter-python");
Thanks in advance...