Skip to content

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

License

Notifications You must be signed in to change notification settings

xigoi/nimdenter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages