IMP is a very simple imperative language. The basic entities are:
0, 1, 2, ..., true, falsex0, x1, x2, ...+, -, *, ...=, >, <, ...We will use generic names to represent the classes of entities as follows:
n, or cxiopbop
We'll also use op for an operation that may be Boolean or integer.
The phrase classes of IMP are:
| Phrase class | Generic name | Phrase forms |
|---|---|---|
| Integer expressions | e | x |
| Boolean expressions | b | true |
| Programs | p | null |
R. Burstall. Language Semantics and Implementation. Course Notes. 1994.
Copyright © 2014 Barry Watson. All rights reserved.