Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 712 Bytes

install.md

File metadata and controls

40 lines (29 loc) · 712 Bytes
kind tutorial
order 1
summary install blue, evaluate one expression and run a first file, in about a minute

Install blue

You need Nix with flakes turned on. Install blue into your profile:

$ nix profile install github:pleme-io/blue

To try blue without installing it, put nix run github:pleme-io/blue -- in front of each command below.

Ask blue for a value:

$ blue eval '1 + 2'
3

Write a file called hello.b:

write_stdout(unlines(["Olá, mundo!"]))

Run it:

$ blue hello.b
Olá, mundo!

That is a whole blue program. The next tutorial, a first script, gives it arguments.