Source files

Xenon programs are written as UTF-8 text in files with the .xe extension.

File structure

Every source file contains exactly one file-scoped namespace declaration. using directives may appear before it. Declarations that follow belong to that namespace for the entire file.

using Xenon.Math;

namespace Example;

int Main()
{
    return 0;
}

Comments

Use // for a single-line comment and /* ... */ for a block comment.

// Explain one line of code.
int value = 42;

/*
   A comment may span
   several lines.
*/