Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
MAD (programming language)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Declaration statements === Variables may be implicitly or explicitly declared. By default all implicitly declared variables are assumed to be floating point. The NORMAL MODE IS statement may be used to change this default. {{col-begin}} {{col-2}} * FLOATING POINT var<sub>1</sub>, var<sub>2</sub>, ... (may include dimension information) * INTEGER var<sub>1</sub>, var<sub>2</sub>, ... (may include dimension information) * BOOLEAN var<sub>1</sub>, var<sub>2</sub>, ... (may include dimension information) * FUNCTION NAME ''name''<sub>1</sub>, ''name''<sub>2</sub>, ... (may include dimension information) * STATEMENT LABEL ''label''<sub>1</sub>, ''label''<sub>2</sub>, ... (may include dimension information) * MODE NUMBER ''n'', var<sub>1</sub>, var<sub>2</sub>, ... (may include dimension information) * NORMAL MODE IS ''type-name'' (INTEGER, BOOLEAN, FLOATING POINT, STATEMENT LABEL, or FUNCTION NAME) * NORMAL MODE IS MODE NUMBER ''n'' * DIMENSION ''variable''(''max-dimension'') (declares an array from 0...''max-dimension'') * DIMENSION ''variable''(''from''...''to'') * DIMENSION ''variable''(''subscript<sub>1</sub>'', ''subscript<sub>2</sub>'', ..., ''subscript<sub>n</sub>'') (declares a multidimensional array) {{col-2}} * VECTOR VALUES ''array''(''n'') = c<sub>1</sub>, c<sub>2</sub>, c<sub>3</sub>, ... * VECTOR VALUES ''array''(''m'') ... ''array''(''n'') = constant * DOUBLE STORAGE MODE ''mode-list'' (doubles the amount of storage allocated for the modes listed) * EQUIVALENCE (''a''<sub>1</sub>, ''a''<sub>2</sub>, ..., ''a''<sub>m</sub>), ... * PROGRAM COMMON ''a'', ''b'', ''c'', ... (may include dimension information) * ERASABLE ''a'', ''b'', ''c'', ... (may include dimension information) * PARAMETER ''A''<sub>1</sub>(''B''<sub>1</sub>), ''A''<sub>2</sub>(''B''<sub>2</sub>), ..., ''A''<sub>n</sub>(''B''<sub>n</sub>) * SYMBOL TABLE VECTOR ''variable'' * FULL SYMBOL TABLE VECTOR ''variable'' * LISTING ON (the default) * LISTING OFF * REFERENCES ON * REFERENCES OFF (the default) {{col-end}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)