Elm Exactly
A Standard Definition of Elm?Draft version 0.4 / Figures

Figures

The figures of the book, by chapter: its grammar, the classes of its phrases and semantic objects, its tables of escapes and fixities, its derived forms, and the tables of its basis. Each has a page at an address made from its label, which does not change between editions, though its number may.

2Syntax of the Core

FigureCaption
core-escapes
Figure 1
Escape Sequences
core-identifiers
Figure 2
Identifiers
core-fixities
Figure 3
Fixities of the Operators of the Initial Basis
core-phrase-classes
Figure 4
Core Phrase Classes
core-grammar-expressions
Figure 5
Grammar: Expressions, Matches, Declarations and Bindings
core-grammar-patterns
Figure 6
Grammar: Patterns
core-grammar-types
Figure 7
Grammar: Type Expressions

3Syntax of Modules

FigureCaption
phrase-classes-modules
Figure 8
Modules Phrase Classes
grammar-modules
Figure 9
Grammar: Modules, Headers, Imports and Exposing Lists
grammar-top-level-declarations
Figure 10
Grammar: Top-level Declarations and Bindings
default-imports
Figure 11
Default Imports

4Static Semantics for the Core

FigureCaption
static-core-simple
Figure 12
Simple Semantic Objects
static-core-builtin
Figure 13
Built-in Type Names
static-core-compound
Figure 14
Compound Semantic Objects
static-core-admissible
Figure 15
Admissible Types

5Static Semantics for Modules

FigureCaption
static-modules-compound
Figure 16
Further Compound Semantic Objects
static-modules-port
Figure 17
Port Types
static-modules-port-table
Figure 18
What can and cannot be sent over a port

6Dynamic Semantics for the Core

FigureCaption
dynamic-core-simple
Figure 19
Simple Semantic Objects
dynamic-core-compound
Figure 20
Compound Semantic Objects

7Dynamic Semantics for Modules

FigureCaption
dynamic-modules-compound
Figure 21
Compound Semantic Objects for Modules

8Tasks, Commands, Subscriptions and Ports

FigureCaption
effects-simple
Figure 22
Simple Semantic Objects of the Effects
effects-compound
Figure 23
Compound Semantic Objects of the Effects
effects-apply
Figure 24
APPLY on Effect Values
effects-port-table
Figure 25
What Can and Cannot Be Sent over a Port

9Programs

FigureCaption
programs-objects
Figure 26
Semantic Objects of Execution

ADerived Forms

FigureCaption
appendix-derived-forms-expressions
Figure 27
Derived forms of Expressions and Atomic Expressions
appendix-derived-forms-patterns
Figure 28
Derived forms of Patterns and Pattern Rows
appendix-derived-forms-bindings
Figure 29
Derived forms of Value Bindings and Declarations
appendix-derived-forms-modules
Figure 30
Derived forms of Top-level Declarations

BFull Grammar

FigureCaption
appendix-full-grammar-expressions
Figure 31
Full Grammar: Expressions, Matches, Declarations and Bindings
appendix-full-grammar-patterns
Figure 32
Full Grammar: Patterns
appendix-full-grammar-types
Figure 33
Full Grammar: Type Expressions
appendix-full-grammar-modules
Figure 34
Full Grammar: Modules, Headers, Imports and Exposing Lists
appendix-full-grammar-top-level
Figure 35
Full Grammar: Top-level Declarations and Bindings

CThe Initial Static Basis

FigureCaption
static-basis-tynames
Figure 36
Type Names of the Initial Basis, T0T_0
static-basis-basics-te
Figure 37
Static TE\TE of ME0(Basics)\ME_0(\kw{Basics})
static-basis-basics-ve1
Figure 38
Static VE\VE of ME0(Basics)\ME_0(\kw{Basics}): Constructors, Conversions, Comparison, Booleans and Integer Functions
static-basis-basics-ve2
Figure 39
Static VE\VE of ME0(Basics)\ME_0(\kw{Basics}): Floating-point Functions and Function Helpers
static-basis-operators
Figure 40
The Static Operator Table, OTSTAT\OTstat
static-basis-data
Figure 41
Static Interfaces of Maybe, Result, String, Char, Array and Bytes
static-basis-platform
Figure 42
Static Interfaces of Debug and the Platform Modules
static-basis-task
Figure 43
Static Interface of Task
static-basis-effects
Figure 44
Static Interfaces of Process, Json and View Modules

DThe Initial Dynamic Basis

FigureCaption
dynamic-basis-basics
Figure 45
Dynamic VE\VE of ME0(Basics)\ME_0(\kw{Basics})
dynamic-basis-operators
Figure 46
The Dynamic Operator Table, OTDYN\OTdyn
dynamic-basis-others
Figure 47
Dynamic VE\VE of the Other Modules of ME0\ME_0
dynamic-basis-elm
Figure 48
The Values of Basics Written in Elm
dynamic-basis-int
Figure 49
APPLY\APPLY on Int Values
dynamic-basis-float
Figure 50
APPLY\APPLY on Floats: Arithmetic
dynamic-basis-pow
Figure 51
APPLY\APPLY on Floats: Power
dynamic-basis-elem
Figure 52
APPLY\APPLY on Floats: Elementary Functions
dynamic-basis-conv
Figure 53
APPLY\APPLY on Conversions
dynamic-basis-eq
Figure 54
Equality of Values
dynamic-basis-order
Figure 55
Order of Comparable Values

FElm and Standard ML

FigureCaption
appendix-standard-ml-evaluation
Figure 56
Standard ML and Elm: Evaluation
appendix-standard-ml-types
Figure 57
Standard ML and Elm: Types
appendix-standard-ml-polymorphism
Figure 58
Standard ML and Elm: Polymorphism and Type Variables
appendix-standard-ml-modules
Figure 59
Standard ML and Elm: Modules, Programs and Effects
appendix-standard-ml-syntax
Figure 60
Standard ML and Elm: Syntax

A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.