Getting Started
What is Zaid?
Zaid is a small scripting language that supports both functional and object-oriented programming. It is designed to be easy to learn, and easy to use.
Installing Zaid
Brew
If you're on Mac, you may use homebrew
:
brew tap zaid-language/zaid-lang
brew install zaid-language/zaid-lang/zaid
Go Install
If you have Go installed, you may use go install
:
go install zaidlang.org/x/zaid
Direct Download
You may download the compiled binaries for your platform from our GitHub releases page.
Building Zaid
If you're on a Unix or Mac machine, you can easily download the source code and build directly:
git clone https://github.com/zaid-language/zaid-lang.git
cd zaid-lang
make
This downloads and builds the latest version of Zaid found on GitHub. You will be put inside a fresh instance of zaid
if everything was successful.
Interactive Mode
If you just run zaid
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 Zaid a spin?
print("Hello, world!")
Once you have Zaid setup and installed, you're ready to jump into learning the language.