---
title: "Introduction"
canonical: "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/introduction.html"
source: "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/introduction.md"
part: "The Magma Language"
chapter: "Statements and Expressions"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "The Magma Language", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/index-magma-language.md"}
  - {"title": "Statements and Expressions", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/index-statements-and-expressions.md"}
prev: {"title": "Statements and Expressions", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/index-statements-and-expressions.md"}
next: {"title": "Starting, Interrupting, and Terminating", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/startup-interrupt-quit.md"}
---

# Introduction

This chapter contains a very terse overview of the basic elements of the Magma language.

When a statement typed at the `>` prompt is not finished, the next prompt names the constructs still open, innermost last. After `print 9 - 3` it is `print>`, waiting for the semicolon. Inside a `while` loop inside a function it is `function|while>`, waiting for `end while;` and then `end function;`.
