Tutorial
Here you will have an introduction to programming in Modula-3 and you will create your first Modula-3 program.
Although Modula-3 is a descendent of the Pascal family of languages it also has some characteristics which will be familiar to C/C++ programmers.
- To create your first Modula-3 program:
select the directory where you want your files to reside.
create a sub-directory named src.
switch to the src sub-directory and type the programs below.
run the Modula-3 make program by typing m3build
Reference
Here you will learn the details about language elements, but also how to
compile and run a program, and you will see the standard libraries.
Language elements
- Modules are the basic building of blocks in Modula-3 programs:
Modules
- Declarations bind names with values or types:
Declarations
- Statements appear in procedures and in a module's top-level block:
Statements
- Expressions appear in procedures and in a module's top-level block:
Expressions
- A pragma is a compiler directive:
Pragmas
Compiling and running programs
Standard libraries
The SRC Modula-3 standard library is quite comprehensive, and only the basic routines are covered here.
responsable professor: Dr. Ryan Stansifer.
Student: Philippe Stancu
Informations from yahoo's site on Programming Languages: Modula-3