Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/xigoi/nimdenter
- Owner: xigoi
- License: gpl-3.0
- Created: 2022-01-05T19:13:11.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-07T15:26:20.000Z (almost 3 years ago)
- Last Synced: 2024-08-01T19:56:13.887Z (3 months ago)
- Language: Nim
- Size: 14.6 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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";
#}
#}
#}
```