XPS Documentation

How To Use XPS

With the XPS 0.2 release, it is now possible to validate XPL-core programs with the xplc compiler. To use xplc simply pass it a URL for the XPL program you want to compile, typically:

xplc file:///path/to/XPL/source.xpl

Four sources of information will help you learn how to write an XPL program:

  1. xps/schemas/xplcore.rng. This file is the Relax NG schema for the XPL-core language. It is the authoritative definition of XPL-core. It also has several comments in it to help you understand the constructs of the language.
  2. examples/*/*.xpl. This set of files provides various instructive examples in XPL. These examples are intended as tutorials on various subjects. The code is documented so you can follow along.
  3. test/*/*.xpl. This set of files forms the XPL test suite. It is based on the LLVM test suite and contains over 1000 samples of XPL programs. Most of them are very shorts and will help you gain an understanding of the syntax of an XPL program. Start with the programs in the Feature subdirectory.
  4. The semantics of the various instructions and constructs in XPL are quite analagous to similarly named instructions in LLVM. Learning the LLVM assembly language will help you understand the fundamental XPL instructions. You can read about it here.

Next