Skip to content

Hello World in Ellex

This is one of the simplest programs you can write in Ellex. It uses a natural language command to output a greeting to the screen.

Below is the Ellex code to display “Hello, World!”:

tell "Hello, World!"
  • tell is an Ellex command that outputs text to the screen.
  • "Hello, World!" is the text string that will be displayed.

When you run this code in the Ellex REPL, it will print “Hello, World!” exactly as shown. This example demonstrates how Ellex uses intuitive commands that mimic everyday language, making it easy for beginners to start coding.

  1. Start the Ellex REPL by running make dev or cargo run --bin ellex_cli repl in your terminal.
  2. Type the code above into the REPL and press Enter.
  3. Watch as Ellex outputs “Hello, World!” to the screen.

This is just the beginning! You can modify the text inside the quotes to say anything you’d like. Try changing it to greet someone by name, like tell "Hello, Alice!".