Laboratory 2, January 22


CVS

You have learned about CVS on your own.  Your TA will help you set up a CVS directory for your team and discuss a bit how it is used.

Working with an ASCII Input File

Get out a fresh sheet of paper.  Put your team information on the paper (see the section "Turning Work In" below).   Work with your lab partners on this.

0000000  7270 676f 6172 206d 7266 6465 6f28 7475
0000020  7570 2974 0a3b 200a 6220 6765 6e69 200a
0000040  2020 7720 6972 6574 6e6c 2728 6948 202c
0000060  6874 7369 6920 2073 7246 6465 2927 0a3b
0000100  2020 6e65 2e64 000a
0000107

program Tester(input, output);

 var I: Integer;

  begin {tester}
    Writeln(); Writeln();
    Write('Please enter an integer value for I: ');
    Read(I);
    I := I + 1;
    Writeln('The current value of I is ', I:0);
    Writeln(); Writeln()
  end. {tester}
 

Determining the List of Tokens for mPascal

Follow the resources link on the home page of this site to the EBNF for mPascal.  

You will each be contributing stubs for the scanner according to the programming portion of the project due next week.

Turning Work In

On each paper you turn in in lab from now on, write the following information in the upper left corner in this order:

  1. Your group number
  2. The lab section (3 or 4)
  3. Today's date
  4. Your team names and cs.montana.edu e-mail addresses

To Turn In

Check out Milestone One

Your project is divided into milestones.  Look at milestone 2 to see what is due next week with respect to your project.

Remainder of Time

Use the remainder of your time to ensure that each member of the team understands CVS and the role CVS will play in this project.  Set up a CVS directory for the project.