Skip to content
/ nimrun Public

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

License

Notifications You must be signed in to change notification settings

flaviut/nimrun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •