Run Swift Code snippets and regex in the browser

Image for Run Swift Code snippets and regex in the browser

Kishikawa Katsumi has put out to the public some interesting Swift tools that I wanted to note. All of these are tools that run in the browser using the Vapor Swift application server.

There is an in-browser Swift compiler that allows you to run and test and share Swift snippets including running the nightly version of Swift. Check out Swift Fiddle.

if you need to format Swift files you can use Swift Format. (Swift fiddle supports formatting too.)

If you want to understand Swift at a deeper level try running your files through the Swift Abstract Syntax Tree Explorer.

The final tool I wanted to highlight is the Swift RegEx tool. If you want to test your Regular expressions then you can experiment with this.