Conventions

Details that are specific to the current (sole) implementation of OScript will be described in boxes like this.
Examples and sample code will be presented in boxes like this.
Warnings about dangerous practices are presented in boxes like this.

Text representing code is presented in a fixed-width font. Text in code that is intended to be replaced, or representing a class of possible values are presented in italics.

The sections on syntax make extensive use of railroad diagrams, a common method of describing syntax. Each smooth path from the start of the diagram to the end, including loop-backs, represents a syntactically valid piece of code. Literal text is represented in round boxes in a fixed-width font. Square boxes with a san-serif font represent a subdiagram. The values in round boxes are called terminals, while those in square boxes are called non-terminals.

Introduction to OScript

Lexing and Preprocessing

Parsing

Types

Visibility and Mutability

Behaviour/Semantics

WebLingo

Xlates