acristoffers / tree-sitter-matlab

MATLAB tree-sitter parser
MIT License
20 stars 6 forks source link

Python (etc.) Packaging #12

Closed apozharski closed 3 months ago

apozharski commented 4 months ago

Hello Álan, Some background: I have been working recently on updating sphinxcontrib-matlab to include support for modern matlab features (argument blocks, property validation syntax, enums, etc.), and in the process have had the need to begin to migrate it off of a hand rolled Pygments regex lexer. After initially looking at the textmate grammar provided by mathworks and spending some time fixing the numerous bugs there I went looking for another existing solution and found your work. This package does everything I need in terms of parsing "mfiles" for integration with sphinx and seems like it was quite a bit of work, thanks for doing it.

Is there any possibility that this project is packaged for the various package managers. Does this require it to be "blessed" by the tree-sitter upstream? My primary interest is obviously not having to vendor the project inside sphinxcontrib-matlab so I would be happy to take up maintaining packaging for pypi if you do not have interest in that.

Thanks again, Anton Pozharskiy

acristoffers commented 4 months ago

I'll have a look at it this evening, but I believe it's possible.

acristoffers commented 3 months ago

Sorry for the delay, I completely forgot about this issue. It's now published and I can pip install tree-sitter-matlab and then import tree_sitter_matlab, so I guess it's working.

apozharski commented 3 months ago

Absolutely no problem. It seems to be working on my end as well, thanks for this!