ton-society / grants-and-bounties

TON Foundation invites talent to imagine and realize projects that have the potential to integrate with the daily lives of users.
https://ton.org/grants
241 stars 102 forks source link

Tact source code formatter #655

Open heli0dus opened 2 weeks ago

heli0dus commented 2 weeks ago

Summary

Implement Tact source code formatter as part of it's compiler. This can provide a basic solution for further development of language tools

Context

This tool may have several uses:

  1. The most obvious one is providing a baseline solution for code formatting as it is and as a solution for third-party tools i.e. IDE extensions for language support
  2. Providing proper formatting for the output of randomized tests for compiler

References

The biggest inspiration for this comes from gofmt.

Estimate suggested reward

No response

anton-trunov commented 2 weeks ago

This is a very useful project and it's already being implemented: https://github.com/tact-lang/tact/pull/335.