Skip to main content

Syntax

rascal-0.34.0
rascal-tutor-0.18.4

Synopsis

Part of the synopsis that summarizes syntax introduced by this concept.

Syntax

#### Syntax

_MarkedText_

Description

The syntax section is intended to describe syntactic aspects of language constructs. The contents of this section are arbitrary text.

Examples

The syntax section for an if-then statement can be written as:

#### Syntax

`if ( Exp ) Statement;`

Benefits

  • Syntax elements are usually "by example" such that you can immediately read what to write.

Pitfalls

  • Syntax elements are not yet generated from actual syntax definitions