Skip to content

0.3.0

Compare
Choose a tag to compare
@AndreiRegiani AndreiRegiani released this 14 Jul 16:30
· 117 commits to master since this release

Issues solved:

  • #16: Shortcut to print values of discarded symbols fails on OSX (@timotheecour)
  • #18: Newlines not printed to stdout, produces different output from nim compiler
  • #22: Support command-line arguments, added --help (@timotheecour)
./inim -h
Usage:
  main [optional-params]
inim interpreter
  Options(opt-arg sep :|=|spc):
  -h, --help                      write this help to stdout
  -n=, --nim=      string  "nim"  path to nim compiler
  -s=, --srcFile=  string  ""     nim script to run
  --showHeader     bool    true   show program info startup

--showHeader:false is useful to use inim as a cmd line tool:

echo 'import os; echo os.findExe("dmd")' | ./inim --showHeader:false /Users/timothee/homebrew//bin/../Cellar/dmd/HEAD-81082d5/bin/dmd

--nim is useful to allow using a custom nim binary, eg nim_temp produced by ./koch temp