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

Examples

Up

Here are a number of simple example showing some XL capabilities. Examples point back to the concepts they illustrate, and in some cases to the implementation where relevant.

Simple examples

Hello World
Factorial
Maximum and Average
Complex numbers

Basic Syntax and Semantics

Numbers
Text
Operators
Declarations
Basic statements
Functions
Input and output parameters
Generic Declarations
Operator overloading (expression reduction)

Library

Objects
Text I/O
XL Strings

Language extensions

Prolog-Style Logic Programming
Ada-style Tasking
Symbolic Differentiation
GUI description
Translation statements
Quote

Up


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