Skip to content

Conversation

@lmichaudel
Copy link

I tried working with the python binding :

from tree_sitter import Language, Parser 
import tree_sitter_c3

parser = Parser(Language(tree_sitter_c3.language()))

but stumbled accros this error :

Traceback (most recent call last):
  File "/home/lucas/devel/c3-format/main.py", line 2, in <module>
    import tree_sitter_c3
  File "/usr/lib/python3.13/site-packages/tree_sitter_c3/__init__.py", line 3, in <module>
    from ._binding import language

setup.pyactually had the solution in a comment.

I'm still getting a warning that might be looked at :

DeprecationWarning: int argument support is deprecated
  parser = Parser(Language(tree_sitter_c3.language()))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant