Clone wiki

zilf / Home


Latest version:0.9 (Release Notes)
Issue tracker:JIRA
More information:
 Getting Started

ZILF is a set of tools for working with ZIL (the Zork Implementation Language [1]), including a ZIL compiler, ZAP assembler, and ZIL libraries for writing text adventure games.

ZIL is a Lisp-like language, based on MDL [2], originally developed by Infocom for their commercial interactive fiction.

The project includes several components:

  • ZILF itself, a compiler that translates ZIL code to ZAP assembly code.
  • ZAPF, an assembler that translates ZAP assembly code to binary Z-code files.
  • A text adventure library for writing games in ZIL, including a parser and basic world model.
  • Source code for ports of the classic game "Adventure" (Colossal Cave), the traditional sample game "Cloak of Darkness", and other examples.
  • Hundreds of unit tests for the adventure library, compiler, and interpreter.

ZILF and ZAPF can be used from the command line, or from the Visual Studio Code extension, which offers syntax highlighting, bracket matching, automated builds, and source-level debugging.


[1]See Andrew Plotkin's "What is ZIL anyway?" for an overview of the language and how it relates to MDL.
[2]MDL, or Muddle, is documented in The MDL Programming Language. The language implemented by ZILF also incorporates aspects of Machine-Independent MDL.