-
Notifications
You must be signed in to change notification settings - Fork 3
Alan Compiler
Info and technical details about the ALAN compiler.
Table of Contents
The ALAN compiler is found in the Alan SDK (Software Development Kit) along with the ARun interpreter, the ALAN Manual and some examples.
There are two versions of the compiler, one being a command-line tool only, the other providing a GUI (Graphical User Interface). The former is available for all OSs, whereas the latter is only available for Windows.
SDK version | Windows | Linux | MacOSX | setup method |
---|---|---|---|---|
Alan SDK (command line) | alan.exe |
alan |
alan |
stand-alone |
Alan SDK (GUI) | winalan.exe |
✗ | ✗ | installer |
When launched, the GUI version of the compiler provides the user with a file selection dialog:
then, after attempting to compile the source adventure, WinAlan displays a compiler report:
The command line (CLI) version is more flexible, allows full control over compiler options, can be used in toolchain scripts, and can be integrated with third party editors (e.g. the AlanIDE).
For more info on how to use the command line compiler, see The ALAN Manual:
The sources of the ALAN compiler can be found in the compiler/
folder of the ALAN IF source repository on GitHub.
The ALAN compiler was built with the aid of ToolMaker, a proprietary toolset to generate compilers created by Thomas Nilefalk and his colleagues during the '90s.
Although resorting to ToolMaker isn't required unless the ALAN grammar needs to be changed, its sources have been made available in case necessity arises:
ToolMaker includes ParserMaker, a parser generator for LALR-grammars, which is used for generating the ALAN parser.
This project is part of the ALAN IF Network. Alan is an Interactive Fiction authoring tool for creating text adventures: www.alanif.se