Learn how to get Ghost up and running on your local machine.
What is Ghost
Ghost is a small, (soon to be) class-based scripting language.
If you're on Mac, you may use
$ brew tap ghost-language/ghost $ brew install ghost-language/ghost/ghost
If you have Go installed, you may use
$ go install github.com/ghost-language/ghost
You may download the compiled binaries for your platform from our GitHub releases page.
If you're on a Unix or Mac machine, you can easily download the source code and build directly:
git clone https://github.com/ghost-language/ghost cd ghost make
This downloads and builds the latest version of Ghost found on GitHub. You will be put inside a fresh instance of
ghost if everything was successful.
If you just run
ghost without any arguments, it starts the interpreter in interactive mode (aka, REPL mode, read-eval-print loop). You can type in a line of code, and immediately execute it. While in this mode, your state is saved until you exit the program. Meaning if you define a variable, you may reference the variable later on.
Ready to give Ghost a spin?
Once you have Ghost setup and installed, you're ready to jump into learning the language.