Home | About | Partners | Contact Us

SourceForge Logo

Quick Links
Home
News
Status
Building XL
XL Mailing List

Understanding XL
Conceptual overview
XL examples
Inside XL
Concept Programming

In depth
Browse GIT
Bugs
SourceForge Info
Contact

Other projects
GNU Project
The Mozart Project

XLR: Extensible Language and Runtime

The art of turning ideas into code

XL compiler plug-ins

Prev: The XL translation process

Up

Next: Per-scope information

To create a language that is truly extensible, it is necessary to make it possible for third parties to add their own components to the translation process. For this reason, the XL compiler is designed so that external plug-ins can be added to the compiler.

At this stage, XL plug-ins still need to be built with the compiler. In the long term, the intent is to be able to load plug-ins at run-time, including based on command-line options or configuration files. This should be made easier with support for language interpretation (as opposed to compilation only).

Plug-ins are implemented using the regular translation process of XL. This process gives the necessary modularity, enabling a specific component to add individual translations that are recognized by the whole compiler. The translation implementation uses tables that are constructed at run-time. So reconfiguring the compiler at run-time to add or remove individual translations is possible, regardless of whether plug-ins are compiled-in or dynamically loaded.

Prev: The XL translation process

Up

Next: Per-scope information


Copyright 2008 Christophe de Dinechin (Blog)
E-mail: XL Mailing List (polluted by spam, unfortunately)