home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / FUNNEL_S / TESTS / PR05.FW < prev    next >
Text File  |  1992-05-27  |  997b  |  41 lines

  1. PR05: Test the parsing of formal parameter lists.
  2.  
  3. First trip the parser so we don't get past the parser.
  4. @>
  5.  
  6. 1. Test macro definition with no formal parameters.
  7. @$@<Sloth@>@{Slothtext@}
  8.  
  9. 2. Test macro definition with one formal parameter.
  10. @$@<Sloth with one@>@(@1@)@{Slothtext@}
  11.  
  12. 3. Test macro definition with many formal parameters.
  13. @$@<Sloth with 2@>@(@2@)@{Slothtext@}
  14. @$@<Sloth with 3@>@(@3@)@{Slothtext@}
  15. @$@<Sloth with 4@>@(@4@)@{Slothtext@}
  16. @$@<Sloth with 5@>@(@5@)@{Slothtext@}
  17. @$@<Sloth with 6@>@(@6@)@{Slothtext@}
  18. @$@<Sloth with 7@>@(@7@)@{Slothtext@}
  19. @$@<Sloth with 8@>@(@8@)@{Slothtext@}
  20. @$@<Sloth with 9@>@(@9@)@{Slothtext@}
  21.  
  22. 4. Test with syntax errors in the parameter list.
  23.  
  24. @$@<Sloth a@>@(@+@9@)@{Slothtext@}
  25. @A@<Error recovery point@>
  26.  
  27. @$@<Sloth b@>@9@)@{Slothtext@}
  28. @A@<Error recovery point@>
  29.  
  30. @$@<Sloth c@>@(9@)@{Slothtext@}
  31. @A@<Error recovery point@>
  32.  
  33. @$@<Sloth d@>@9@)@{Slothtext@}
  34. @A@<Error recovery point@>
  35.  
  36. @$@<Sloth e@>@(@9@)@)@{Slothtext@}
  37. @A@<Error recovery point@>
  38.  
  39.  
  40.  
  41.