Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22067

Getting error when using python parser with rust-bindings in tree-sitter

$
0
0

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...


Viewing all articles
Browse latest Browse all 22067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>