Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xigoi/nimdenter

A tool for people who don't like Nim's indentation-based syntax
https://github.com/xigoi/nimdenter

Last synced: 6 days ago
JSON representation

A tool for people who don't like Nim's indentation-based syntax

Awesome Lists containing this project

README

        

# nimdenter

Do you hate Nim because it's indentation-based? No worries! This tool will allow you to write Nim code with braces and automatically fill in the indentation for you!

## Installation

```
nimble install nimdenter
```

## Usage

```
$ cat hello.nim
proc main() = #{
if true: #{
for _ in 0..<8: #{
echo "oh my gosh this is terribly indented";
#}
#}
#}

$ nimdenter < hello.nim
proc main() = #{
if true: #{
for _ in 0..<8: #{
echo "oh my gosh this is terribly indented";
#}
#}
#}
```