home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / modula2 / mod2txt.zip / TABCONT.TXT < prev   
Text File  |  1987-03-25  |  8KB  |  216 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.            CORONADO ENTERPRISES MODULA-2 TUTORIAL - Version 1.00
  8.                              (Generic Version)
  9.  
  10.  
  11.              This   documentation  and  the  accompanying  software,
  12.         including  all of the example programs and text  files,  are
  13.         protected under United States Copyright law to protect  them
  14.         from  unauthorized commercialization.   This entire tutorial
  15.         is distributed under the "Freeware" concept which means that
  16.         you  are not required to pay for it.   You are permitted  to
  17.         copy  the  disks  in their entirety and pass them  on  to  a
  18.         friend or acquaintance.   In fact,  you are encouraged to do
  19.         so.   You  are permitted to charge a small fee to cover  the
  20.         mechanical  costs  of duplication,  but the software  itself
  21.         must be distributed free of charge, and in its entirety.
  22.  
  23.              If  you find the tutorial and the accompanying  example
  24.         programs useful,  you may, if you desire, pay a small fee to
  25.         the  author to help compensate him for his time and  expense
  26.         in  writing  it.   A  payment  of  $10.00  is  suggested  as
  27.         reasonable  and sufficient.   If you don't feel the tutorial
  28.         was worth this amount,  please do not make any payment,  but
  29.         feel free to send in the questionnaire anyway.
  30.  
  31.              Whether or not you send any payment, feel free to write
  32.         to  Coronado  Enterprises  and ask for the  latest  list  of
  33.         available  tutorials and a list of the known  Public  Domain
  34.         libraries  that  can supply you with this software  for  the
  35.         price  of copying.   Please enclose a self addressed stamped
  36.         envelope,  business size preferred, for a copy of the latest
  37.         information.   See  the accompanying "READ.ME" file  on  the
  38.         disk for more information.
  39.  
  40.              I  have  no  facilities for telephone support  of  this
  41.         tutorial and have no plans to institute such.   If you  find
  42.         any problems,  or if you have any suggestions,  please write
  43.         to me at the address below.
  44.  
  45.                        Gordon Dodrill - March 16, 1987
  46.  
  47.  
  48.  
  49.                   Copyright (c) 1987, Coronado Enterprises
  50.  
  51.  
  52.                             Coronado Enterprises
  53.                            12501 Coronado Ave NE
  54.                        Albuquerque, New Mexico 87122
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                              TABLE OF CONTENTS
  71.  
  72.         Introduction to the Modula-2 Tutorial                Page 1
  73.                   FIRSTEX.MOD   The first example program
  74.  
  75.                       Part I - Modula-2 is like Pascal
  76.  
  77.         Chapter 1 - What is a computer program?              Page 5
  78.  
  79.         Chapter 2 - Getting started in Modula-2              Page 8
  80.                   PUPPYDOG.MOD  The minimum Modula-2 program
  81.                   WRITESM.MOD   Write something on the monitor
  82.                   MODCOMS.MOD   Modula-2 comments
  83.                   GOODFORM.MOD  Good formatting example
  84.                   UGLYFORM.MOD  Ugly formatting example
  85.  
  86.         Chapter 3 - The simple Modula-2 data types           Page 13
  87.                   INTVAR.MOD    Integer variables
  88.                   INTMATH.MOD   Integer variable math examples
  89.                   CARDMATH.MOD  Cardinal variable math examples
  90.                   REALMATH.MOD  Real variable math example
  91.                   BOOLMATH.MOD  Boolean variable math example
  92.                   CHARDEMO.MOD  Character variable demonstration
  93.                   TRANSFER.MOD  Transfer between types
  94.  
  95.         Chapter 4 - Modula-2 loops and control structures    Page 23
  96.                   LOOPDEMO.MOD  Loop demonstration
  97.                   IFDEMO.MOD    Conditional branching
  98.                   LOOPIF.MOD    Loops and IF's together
  99.                   TEMPCONV.MOD  Temperature conversion
  100.                   DUMBCONV.MOD  Poor variable names
  101.                   CASEDEMO.MOD  CASE demonstration
  102.  
  103.  
  104.         Chapter 5 - Modula-2 procedures                      Page 29
  105.                   PROCED1.MOD   Simple procedures
  106.                   PROCED2.MOD   Procedures with variables
  107.                   PROCED3.MOD   Multiple variables
  108.                   PROCED4.MOD   Scope of variables
  109.                   PROCED5.MOD   Procedure calling procedures
  110.                   FUNCTION.MOD  An example function
  111.                   RECURSON.MOD  An example with recursion
  112.  
  113.         Chapter 6 - Arrays, types, constants, and labels     Page 37
  114.                   ARRAYS.MOD    Simple arrays
  115.                   ARRAYS2.MOD   Multiple arrays
  116.                   TYPES.MOD     Example of types
  117.                   CONSTANT.MOD  Example of constants
  118.                   ARAYPASS.MOD  Pass Array to Procedure
  119.                   STRINGEX.MOD  String Handling Examples
  120.  
  121.         Chapter 7 - Overall Program Construction             Page 46
  122.                   OVERPROG.MOD  Overall Program Construction
  123.                   MOREPROG.MOD  More Program Construction
  124.                   LASTPROG.MOD  Scrambled Order of Definitions
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.         Chapter 8 - Input/Output and Printing                Page 49
  138.                   SIMPLOUT.MOD  Simple Monitor Output
  139.                   SIMPLIN.MOD   Simple Keyboard Input
  140.                   FILEIO.MOD    File I/O with InOut
  141.                   VARYFILE.MOD  Variable Filename Input
  142.                   PRINTFLE.MOD  Printer and File Output
  143.  
  144.         Chapter 9 - Example Programs                         Page 58
  145.                   TIMEDATE.MOD  Time and Date Example
  146.                   AREAS.MOD     Calculate Areas
  147.                   PC.MOD        Printer Control
  148.                   LIST.MOD      List Program File
  149.  
  150.                          Part II - Advanced Topics
  151.  
  152.         Chapter 10 - Scalars, subranges, and sets            Page 60
  153.                   ENTYPES.MOD   Enumerated Types
  154.                   SUBRANGE.MOD  Subranges
  155.                   SETS.MOD      A SET example
  156.  
  157.         Chapter 11 - Records                                 Page 65
  158.                   SMALLREC.MOD  A Small Record Example
  159.                   BIGREC.MOD    A Larger Record Example
  160.                   VARREC.MOD    A Variant Record Example
  161.  
  162.         Chapter 12 - Pointers and Dynamic Allocation         Page 72
  163.                   POINTERS.MOD  Pointer Example
  164.                   DYNREC.MOD    A Dynamically Allocated Record
  165.                   LINKLIST.MOD  A linked List
  166.  
  167.                      Part III - Modula-2 extends Pascal
  168.  
  169.         Chapter 13 - Modules, Local and Global               Page 81
  170.                   LOCMOD1.MOD   Local Module Demonstration
  171.                   LOCMOD2.MOD   Local Module Demonstration
  172.                   CIRCLES.DEF   Global Module - Definition
  173.                   CIRCLES.MOD   Global Module - Implementation
  174.                   GARDEN.MOD    Calls Module "MYCALCUL"
  175.                   PROCTYPE.MOD  Procedure Type Example
  176.  
  177.         Chapter 14 - Machine Dependent Facilities            Page 89
  178.                   TYPEREL.MOD   Type relaxation
  179.                   WORDADDR.MOD  WORD and ADDRESS example
  180.                   ADRSTUFF.MOD  Address manipulation
  181.  
  182.         Chapter 15 - Concurrency                             Page 94
  183.                   COROUT.MOD    A Simple Coroutine
  184.                   COROUT2.MOD   Added Features
  185.                   COROUT3.MOD   Triple Coroutines
  186.                   INFINITE.MOD  Infinite Execution Loop
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.         Chapter 16 - Complete example programs               Page 99
  204.                   BAKLIST.MOD   Get All filenames From Disk
  205.                   BAKCOPY.MOD   Copy files from Fixed to Floppy
  206.                   BAKRSTR.MOD   Read Floppy back to Fixed Disk
  207.                   DIRHELPS.DEF  Directory help procedures
  208.                   DIRHELPS.MOD
  209.                   BITOPS.DEF    Bit Level Operations
  210.                   BITOPS.MOD
  211.                   REAL2MON.DEF  Real outputs to the monitor
  212.                   REAL2MON.MOD
  213.                   REAL2FIL.DEF  Real outputs to a file
  214.                   REAL2FIL.MOD
  215.  
  216.