Repository navigation
Add Support For Registering Additional Languages - #57
Conversation
williamfzc
left a comment
There was a problem hiding this comment.
Thanks for your interest! Seems like I can not leave some comments on draft PR I think. So I leave them here :)
Sorry for the lack of document about this segment. I would like to add some.
BTW, this link seems private? I got a 404
https://github.com/octoberswimmer/sibyl-sfapex/blob/master/extractor/apex/extractor_apex.go
Sorry, I've changed updated it to public. |
|
Thank you. |

I'd like to be able to use sibyl with additional languages. I started down the path of changing
LangTypeto an interface and removing the coupling between the core package and the language packages, but it turned out to be quite an intrusive change.So this presents a possible alternative solution, allowing packages to register languages with sibyl.
Here's an example of an extractor registering a language with sibyl:
https://github.com/octoberswimmer/sibyl-sfapex/blob/master/extractor/apex/extractor_apex.go
And an example of using this extractor: