Skip to content

Overview of Communicating Syntax

This chapter takes a detour to explore the hidden path to understanding how programming languages are communicated. This will explore programming language terminology, and the tools that language designers use to capture and communicate the rules of their programming lagnuages. This will help you make the most of the following chapters as you learn how to use programming to build your own digital realities.

The path starts with a look at the concept of grammar. Programming language grammars describe the rules for building valid programs. One part of learning to program involves learning these rules, and how to use them to turn your ideas into code.

After this, we take a step back to look at some of the terminology that plays an important role in programming. Understanding the terms we use will help you understand documentation, engage with error messages, and discuss ideas with others involved in software development. This chapter will introduce the following terminology:

  • Statement: the technical name for an instruction.
  • Expression: a place in a statement where a value is calculated.
  • Identifier: the used to identify a building block (eg. method, variable, constant) you have created.

In the Guided Tour, we explore the way you can use syntax to help turn your ideas into code.

Learning Goals

By the end of this section you should be able to:

  • Explain the key programming terms of statements, expressions, and identifiers.
  • Read syntax diagrams, and use these to create code that complies with the rules expressed.