Imp
Copyright (c) 1998-1999 Redshift Software Inc. All Rights Reserved

 

IMP Language Reference Manual
Rene Rivera & John Welch

 
IMP is a low level imperative programming language designed for systems software. This manual provides a basic description of the syntax and semantics of the language.

 

Contents

 
1 Lexical 1.1 Tokens  
1.2 Reserved Words
1.3 Grouping
1.4 Delimitors
1.5 Operators
1.6 Special
1.7 Identifiers
1.8 Constants
2 Programs 2.1 Control Structure 2.1.1 IF
2.1.2 LOOP
2.1.3 CASE
3 Declarations 3.1 Types 3.1.1 Internal Types
3.1.2 Derived Types
3.1.3 Declaring New Types
3.1.4 Enumerated Types
3.1.5 Coerce And Cast
3.2 Scope
3.3 Variables
3.4 Routines
4 Expressions 4.1 Precedence  
5 Statements 5.1 Assignment
5.2 Routine
5.3 Assembly
6 The Preprocessor 6.1 Preprocessor Expressions  
6.2 Preprocessor Statements 6.2.1 Macros
6.2.2 Insert
6.3 Comments
6.4 Escaping the #
7 EBNF Grammar 7.1 Miscellaneous
7.2 Grouping tokens
7.3 Delimitor tokens
7.4 Operator tokens
7.5 Literals 7.5.1 Decimal numbers
7.5.2 Array of characters
7.5.3 Single character
7.5.4 Escaped character
7.5.5 Specific base number
7.6 Reserved words
7.7 Identifiers
7.8 Statements
7.9 Declarations
7.10 Expressions
7.11 Operators
7.12 Top Level
7.13 Preprocessor 7.13.1 Preprocessor Tokens & Macros
7.13.2 Comments

 
Reference
 
1 Lexical
2 Programs
3 Declarations
4 Expressions
5 Statements
6 Preprocessor
7 EBNF