All Projects → flaviut → nimrun

flaviut / nimrun

Licence: MIT license
A small tool to run nim files as executables without explicitly invoking the compiler or littering $PWD.

Programming Languages

shell
77523 projects
nim
578 projects

Labels

nimrun

A wrapper around the Nim compiler to allow for easy scripting of Nim. Puts all temporary files in a temporary directory and cleans up after itself.

This script is implemented in shell. If you'd like a pure Nim implementation, check out Jeff Ciesielski's nimr, which can be installed by just running nimble install nimr!

Usage

  1. Download the script from here and add it to your path.
  2. Use it in one of the following ways:
    • add #!/usr/bin/env nimrun at the beginning of your script
    • execute the nim file with it, for example, nimrun file.nim args

Possible future extentions:

  • cache compilation results for a while
  • configurable temporary directory
  • allow for custom nim c parameters
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].