home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / cpm68k / snobol4.lbr / RSTORY.RQF / RSTORY.RFF
Text File  |  1986-05-22  |  2KB  |  59 lines

  1. .. -*-save,fill,fillw:70,indent:0-*-
  2. ..
  3. .. rstory.rff - rstory description
  4. .. Robert Heller. Created: Tue Feb 25, 1986 19:35:32.61
  5. .. Last Mod: 
  6. .. 
  7. .. (c) Copyright 1986 by Robert Heller
  8. ..     All Rights Reserved
  9. .. 
  10. .. 
  11. ..
  12. .ow 80
  13. .rm 70
  14. .in 10
  15. .sp 4
  16. .ce 4
  17. ^BRstory Grammer and Action Files
  18. \date\
  19. Robert Heller
  20. \copyright\ Copyright 1986 by Robert Heller^b
  21. .par
  22. Rstory's Grammer file (RSTORY.SYN) is an Rsentence grammer file.
  23. There are several terminal variables used:
  24. .sp 1
  25. .nf
  26. <OPENING>     - this is the opening.  It must setup rsentence
  27.                 registers 0 (the main character), 1 (the
  28.                 secondary character - the pet), and 2 (the 
  29.                 barrier). 
  30. <REFUSAL>     - this is the refusal.  Registers 3 thru 6 are set-
  31.                 up as follows: 3 is the last agent to be acted 
  32.                 upon, 4 is the new agent on the scene, 5 is what
  33.                 this new agent won't do to the last agent and 6
  34.                 is the list of previous problems.
  35. <PERSUADED>   - this is the persuasion.  Registers are setup 
  36.                 as for the refusal.
  37. .sp 1
  38. .fi
  39. Additional terminal variables are used to generate new agents and
  40. things as specified in the actions file.
  41. .par
  42. The actions file contains three word lines.  Each line contains the
  43. following:
  44. .sp 1
  45. .nf
  46. SUBJECT VERB OBJECT
  47. .fi
  48. .sp 1
  49. The SUBJECT is a new actor on the scene, the VERB is something SUBJECT
  50. can do to OBJECT.  There needs to be a mapping between OBJECTs and
  51. SUBJECTs - that is there should be at least one SUBJECT for each OBJECT
  52. and at at least one of the OBJECTS should match up with the secondary
  53. character (the pet).  Any of SUBJECT, VERB or OBJECT can be a syntax
  54. variable reference (ie have "<>" around the name of a syntax variable
  55. defined in RSTORY.SYN).  The file can be terminated with the word END,
  56. in caps, on a line by itself.  VERB should be something that SUBJECT
  57. could reasonably do to OBJECT.  It would not make sense for an ant to
  58. throw a rhinoceros...
  59.