Replies: 1 comment 1 reply
-
Greetings, thanks for getting in touch with this question! Having said that, the TRAP format as well as a number of other aspects of implementing your own extractor aren't particularly well documented, so it would really be quite a challenge to add a new language to CodeQL yourself. Additionally, even once an extractor is working there's still quite a lot of work that needs to be done before the database can be used to produce useful results. For reference, even though Additionally, Rust is a rather different language from Ruby and presents some more challenges. In particular, it's likely that to properly analyze Rust code we'll need more information than just the AST of the files in the CodeQL database - we'll also need to see information like flags passed to We're hoping to improve the experience of external contributors when developing an extractor at some point in the mid-term future, but unfortunately for now the lack of documentation would make this very tricky, so I would probably caution you against such an endeavour (especially for a fairly complex compiled language like Rust). |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I was reading your docs about how you managed to create the support for Ruby where you explain that you used the output from
tree-sitter
as an extractor.So, is it possible to use tree-sitter's rust parser to build the database? If so, how could I parse the
node-types.json
generated by the parser?Beta Was this translation helpful? Give feedback.
All reactions