nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.55k stars 1.47k forks source link

Allow NimScripts to be run as executable scripts using a shebang #3301

Closed FedericoCeratto closed 9 years ago

FedericoCeratto commented 9 years ago

Now that NimScript is out ( http://nim-lang.org/0.11.3/nims.html ) it makes sense to run them as executable scripts. Example:

#!/usr/bin/env nimscript
<nim code>

Related to #66 and #2559

Araq commented 9 years ago

!/usr/bin/env nim

should work now.