FuelLabs / sway

🌴 Empowering everyone to build reliable and efficient smart contracts.
https://docs.fuel.network/docs/sway/
Apache License 2.0
62.58k stars 5.37k forks source link

Support for Sway in grep-ast #5305

Open gww-fuel opened 11 months ago

gww-fuel commented 11 months ago

There are tools like grep-ast that are great for programmers:

$ grep-ast pattern files...`

they support variety of languages (e.g. rust -$ grep-ast --languages` : https://github.com/paul-gauthier/grep-ast (btw. can be also installed via pipx install grep-ast),

As backend some of these tools use libraries like:

to be part of big family of parsers.

I was wondering where to put such feature request to consider adding Sway support to tree-sitter to enable tools that use it to parse.

I know team is busy with launch, I wish github issues would have option "schedule submitting new issue" so I could schedule it for next year to not forget :).

JoshuaBatty commented 11 months ago

Hey @gww-fuel thanks for the issue. Not sure if you have seen this repo? https://github.com/FuelLabs/tree-sitter-sway

We already have tree sitter grammar for sway in the repo. Let me know if there was something else you think is missing from that implementation :)

gww-fuel commented 11 months ago

How could I have missed it! Thank you!

Let's try to add it to tools like grep-ast etc!