Back to Syllabus
Chapter 01AAYU Core - Verified

Values, variables, and text

Start with bindings, integer literals, strings, and string concatenation.

This lesson uses the verified core subset and links to a checked-in regression program. Its output is covered by the repository test harness. This does not imply support for features outside the lesson; see known limitations.

What you'll learn

✓Declare values with let
✓Read a bound value
✓Join strings with +
✓Run and inspect a checked example

The smallest useful program

AAYU source files use the '.aayu' extension. The checked example declares string and integer values, prints each one, and joins two strings.

aayu
let name = "AAYU"
let major = 1
let greeting = "Hello from " + name
print(greeting)

This is a shortened excerpt from the checked regression program. The full example also prints the minor and patch version values.

Run it

From the repository root on Windows, run bin/aayu-vm tests/test_01_vars.aayu. On Linux or macOS, build and install both tools as described in the installation guide, then run aayu-vm tests/test_01_vars.aayu; the compiler must be available beside the VM.

Expected final line: 'Hello from AAYU'. The project test harness checks the full output.

Try It Yourself! 🚀

Copy the checked example to hello.aayu. Change the name and greeting, then run it. Compare your output with the source-level changes you made.