Skip to content
Mike Anderson edited this page Dec 8, 2017 · 1 revision

Using Magic

Magic supports a number of modes of operation:

  • REPL usage
  • Command line scripting
  • nREPL usage via Enchant
  • Embedded usage

REPL usage

Magic can be used using the REPL, and launched using the following command:

magic REPL

Command line scripting

Magic can be invoked using a command line script as follows:

magic path/to/script.mag

nREPL usage

See Enchant

Embedded usage

TODO: define and document Java API for embedded usage of Magic

Clone this wiki locally