/nimdenter

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

Primary LanguageNimGNU General Public License v3.0GPL-3.0

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";
    #}
  #}
#}