CSC 270 - Survey of Programming Languages: Scheme (Racket)

Syntax and Semantics

Syntax and Semantics

The Scheme Vocabulary

The Scheme Grammar

Grammatical Terminology

The components of compound statements have names of their own:

Some people think of a program definition in similar terms to a function definition, with a left side (the header) and a (the body) right side.

We often call the header's first component the function and the remaining of the components in the header the arguments.

A cond-expression consists of cond-lines and cond-clauses.

The Meaning of Scheme

Evaluating Scheme Values

Evaluating cond expressions

Evaluating cond expressions: an example

Errors

Runtime Errors

Variable Definitions

Structure Definitions

[Back to the Notes Index]