Next: , Up: iklib programs   [Index]


6.2.1 Top–level program form

The R6RS document specifies a compliant top–level program as:

… a delimited piece of text, typically a file, that has the following form:

?import-form ?top-level-body

so it only specifies that it is “delimited”; it means:

Vicare gathers this freedom to accept two formats of top–level programs:

  1. The standalone delimited sequence:
    (import ?import-spec ...) ?body ...
    
  2. A program form with the following syntax:
    (program ?program-name
      ?config-form ...
      (import ?import-spec ...)
      . ?program-body)
    

where ?program-name is meant to be a descriptive list of symbols and the ?config-form clauses allow additional configuration and behaviour specification.