19.11.2014 Views

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

36 Support for Domain-Specific <strong>Language</strong>s 241<br />

36.1 Definitions of Syntax Expanders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241<br />

36.2 Declarations of Syntax Expanders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242<br />

36.3 Restrictions on Delimiters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242<br />

36.4 Processing Syntax Expanders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242<br />

36.5 Expanders for <strong>Fortress</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244<br />

V <strong>Fortress</strong> APIs and Documentation for Library Writers 245<br />

37 Algebraic Constraints 246<br />

37.1 Predicates and Equivalence Relations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246<br />

37.2 Partial and Total Orders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248<br />

37.3 Operators and <strong>The</strong>ir Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252<br />

37.4 Monoids, Groups, Rings, and Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256<br />

37.5 Boolean Algebras . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259<br />

38 Numbers 262<br />

38.1 <strong>The</strong> Trait <strong>Fortress</strong>.Standard.RationalQuantity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262<br />

38.2 <strong>The</strong> Trait <strong>Fortress</strong>.Standard.TotalComparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266<br />

38.3 Top-level Total Comparison Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267<br />

38.4 <strong>The</strong> Trait <strong>Fortress</strong>.Standard.Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267<br />

38.5 Top-level Comparison Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268<br />

39 Components and APIs 269<br />

40 Memory Sequences and Binary Words 271<br />

40.1 <strong>The</strong> Trait <strong>Fortress</strong>.Core.LinearSequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272<br />

40.2 Constructing Linear Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276<br />

40.3 <strong>The</strong> Trait <strong>Fortress</strong>.Core.HeapSequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276<br />

40.4 Constructing Heap Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278<br />

40.5 <strong>The</strong> Trait <strong>Fortress</strong>.Core.BinaryWord . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279<br />

40.6 <strong>The</strong> Trait <strong>Fortress</strong>.Core.BinaryEndianWord . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283<br />

40.7 <strong>The</strong> Trait <strong>Fortress</strong>.Core.BasicBinaryOperations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288<br />

40.8 <strong>The</strong> Trait <strong>Fortress</strong>.Core.BasicBinaryWordOperations . . . . . . . . . . . . . . . . . . . . . . . . . . 292<br />

40.9 <strong>The</strong> Trait <strong>Fortress</strong>.Core.BinaryLinearEndianSequence . . . . . . . . . . . . . . . . . . . . . . . . . . 294<br />

10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!