No description
Find a file
Adam Blažek 96d27cb5a6 2022.1.7
2022-01-07 16:26:16 +01:00
src Improved CLI and algorithm and added braces 2022-01-07 16:25:07 +01:00
tests Improved CLI and algorithm and added braces 2022-01-07 16:25:07 +01:00
.gitignore Basic functionality 2022-01-05 20:12:22 +01:00
LICENSE.md Basic functionality 2022-01-05 20:12:22 +01:00
nimdenter.nimble 2022.1.7 2022-01-07 16:26:16 +01:00
README.md Improved CLI and algorithm and added braces 2022-01-07 16:25:07 +01:00

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