[Next] [Previous] [Up] [Top] [Contents] [Index]

2 Syntax

Dylan Interchange Format

The Dylan interchange format is a standard file format for publishing Dylan source code. Such a file has two parts, the file header and the code body. The file header comes before the code body.

The code body consists of a source record.

The file header consists of one or more keyword-value pairs, as follows:

language: language-name [Header keyword]

The source record in the file is written in the named language. The only portable value for this keyword is infix-dylan.

module: module-name [Header keyword]

The source record in the file is associated with the named module. This keyword is required.

author: text [Header keyword]
copyright: text [Header keyword]
version: text [Header keyword]

These are provided for standardization. They are optional, and can be ignored by the implementation.

A typical Dylan source file might look like this:

module:  quickdraw
author:  J. Random Rect
         Linear Wheels, Inc., "Where quality is a slogan!"
copyright: (c) 1995 Linear Wheels, Inc., All rights reserved
version:  1.3 alpha (not fully tested)

define constant $black-color = ...

Dylan Reference Manual - 17 OCT 1995
[Next] [Previous] [Up] [Top] [Contents] [Index]

Generated with Harlequin WebMaker