← Back to homeZEHIN / Documentation

Your first steps with Zehin.

A short introduction based on the implemented Zehin 0.1 grammar. Run the examples in the desktop app.

The language at a glance

Programs use UTF-8 text and .zh files. Each statement occupies one line. # begins a comment. Blocks end with gutardy; indentation helps readability.

The complete command vocabulary

ýazgoýegerbolmasagutardygaýtalaöňeyzasagaçepereňk
Lesson 01

Hello, world!

Print your first message with ýaz.

salam.zh
ýaz "Salam, dünýä!"
Expected output
Salam, dünýä!
ýaz prints text. A complete first program in one line.

Try this in the IDE. Change a value or message, save the file, and press F5. Observe how the result changes.

Lesson 02

Variables

Give a value a name with goý.

at.zh
goý at = "Myrat"ýaz at
Expected output
Myrat
goý stores a value in a named variable. Use that name to print it.

Try this in the IDE. Change a value or message, save the file, and press F5. Observe how the result changes.

Lesson 03

Arithmetic

Calculate with +, −, *, and /.

hasap.zh
goý netije = 6 * 7ýaz netije
Expected output
42
Multiply two numbers and print the answer.

Try this in the IDE. Change a value or message, save the file, and press F5. Observe how the result changes.

Lesson 04

Conditions

Make a choice with eger and bolmasa.

sert.zh
goý ýaş = 10eger ýaş >= 7    ýaz "Mekdebe hoş geldiň!"gutardy
Expected output
Mekdebe hoş geldiň!
eger checks a condition. This greeting appears because 10 is greater than or equal to 7.

Try this in the IDE. Change a value or message, save the file, and press F5. Observe how the result changes.

Lesson 05

Loops

Repeat instructions with gaýtala.

gaytala.zh
gaýtala 5    ýaz "Salam!"gutardy
Expected output
Salam!
Salam!
Salam!
Salam!
Salam!
gaýtala repeats the block five times. gutardy marks the end of the block.

Try this in the IDE. Change a value or message, save the file, and press F5. Observe how the result changes.

Lesson 06

Drawing

Explore movement, turns, and colors.

inedordul.zh
reňk "gök"gaýtala 4    öňe 100    saga 90gutardy
Drawing
Move forward and turn right four times to make a blue square.

Try this in the IDE. Change a value or message, save the file, and press F5. Observe how the result changes.

Small by design

Version 0.1 supports arithmetic, text, variables, conditions, counted loops, and turtle graphics. It does not include functions, arrays, input prompts, while loops, or file and network access from student programs.

Useful shortcuts

  • F5 — run
  • Shift + F5 — stop
  • Ctrl + S — save
  • Ctrl + O — open
  • Ctrl + N — new file

The reference is a starter guide. A broader curriculum and advanced documentation are still being developed.

Download all examples