The MINI-L Source Code Language
MINI-L Language Description
The MINI-L language provides the following program constructs.
- Integer scalar variables.
- One-dimensional arrays of integers.
- Assignment statements.
- While loops.
- If-then-else statements.
- Read and write statements.
- Comments.
Here are some additional details of the MINI-L language.
- A comment is introduced by "--" (two dashes) and extends to the end of the current line.
- MINI-L is case sensitive. All reserved words are expressed in lower case.
- A valid identifier must begin with a letter, may be followed by additional
letters, digits, or underscores, and cannot end in an underscore.
You may assume that the length of an identifier will never exceed 8 characters.
- Whitespace in MINI-L programs can occur due to regular blank spaces, tabs, or newlines.
[The detailed syntax for the MINI-L language is described here.]
MINI-L Example Programs