def- / nimrun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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

About

License:MIT License


Languages

Language:Shell 100.0%