SYNTAX / LINKED LANGUAGE REFERENCE
Find the form you need
Look up a form, read its role and run the small example that illustrates it.
The inventory maps 104 named constructs into 22 categories. Its embedded compiler version and earlier runtime proofs identify 0.7.2; current example qualification is recorded separately in the e1121 browser record. Categories include design and unsettled forms as well as runnable examples. A passing example establishes its own source and output, not complete conformance for every listed construct.
01Values, types and containersExamples + scope
Start with the structure of a value. A tuple groups fields; a vector adds an array dimension. Parentheses can also group an expression, so the trailing comma distinguishes a one-field tuple. The examples print selected fields and compare tuple structure with vector rank.
| Form | Meaning |
|---|---|
| 42, 1.5 | Numeric literals |
| true, false | Boolean values |
| null | No value |
| num(2,3) | Complex value with real and imaginary components |
| "text" | Immediate string |
| 'text' | Deferred template |
| (1,2) | Tuple |
| (1,) | One-element tuple; (1) is grouping |
| (x:1,y:2) | Named tuple / record |
| [1,2,3] | Vector |
| [[1,2],[3,4]] | Rank-two vector |
| [value:n] | Repeated value |
| {"a":2,"b":1} | Multiset with counts |
| value. | The value's actual type |
| value.x, value.0 | Named or positional member |
Forms in this category
- scalar literals
- boolean and null values
- complex values
- tuples and records
- fixed and dynamic vectors
- repeated vectors
- multisets — design or partial support
- generic type and shape handles
Values and types
Expected result · 0.7.5 preview
3
1
7
Tuples and vector rank
Tuples and vector rank
Expected result · 0.7.5 preview
[(1, 2), (3, 4)]
[[1, 2], [3, 4]]
Specific example sources are checked separately from the complete category. Coverage and specification mapping
02Bindings and updatesExamples + scope
Give an expression a name with name:. Prefix an existing name with a dot to update its binding. An inner scope can shadow a name; an update searches for an existing binding. The example makes that distinction observable through printed values.
Forms in this category
- binding declaration
- nearest-binding update
- lexical shadowing
- comments and output
- semicolon logical rows
Bindings and scopes
Expected result · 0.7.5 preview
4
2
Specific example sources are checked separately from the complete category. Coverage and specification mapping
03Functions and scopesExamples + scope
A function connects named parameters to an expression or an indented body. Call it with parentheses. Scopes can return their final expression or expose a record with a bare colon. Expand the examples to see default arguments, captured values, callable selection and forward declarations independently.
Forms in this category
- function definition
- typed parameters and return type
- expression-valued scopes
- scope-record result
- lambdas
- closures
- first-class callable values
- forward declarations
Bindings and scopes
Expected result · 0.7.5 preview
3
Captured function values
Captured function values
Expected result · 0.7.5 preview
23
A4
Callable selection
Callable selection
Expected result · 0.7.5 preview
5
6
Forward function declarations
Forward function declarations
Expected result · 0.7.5 preview
5
Functions, calls and specialization
Functions, calls and specialization
Expected result · 0.7.5 preview
5
3
6
Specific example sources are checked separately from the complete category. Coverage and specification mapping
04Named arguments and partial applicationExamples + scope
Choose an argument by name in a call, or bind it in square brackets to create another function. power[n:3] fixes the exponent while leaving the input open. Parameter binding and dimension selection have different roles; inspect the examples before combining them.
Forms in this category
- named call arguments
- default arguments
- partial application
- fully bound zero-argument calls
- operator specialization
Bound arguments and structural selectors
Expected result · 0.7.5 preview
7
4
Calls and specialization
Calls and specialization
Expected result · 0.7.5 preview
5
Binding function arguments
Binding function arguments
Expected result · 0.7.5 preview
8
Functions, calls and specialization
Functions, calls and specialization
Expected result · 0.7.5 preview
11
11
Specific example sources are checked separately from the complete category. Coverage and specification mapping
05SpillingExamples + scope
Use a leading colon to bring named fields into the receiving scope. In an argument list, a spilled record supplies named arguments. This lets a configuration record feed an ordinary function without manually repeating every field. A scope-ending bare colon is a separate record-return form.
Forms in this category
- record-to-scope spill
- call argument spill
- nominal backing spill — design or partial support
Spill record fields
Expected result · 0.7.5 preview
5
Specific example sources are checked separately from the complete category. Coverage and specification mapping
06ImportingExamples + scope
A dotted module name produces a module handle. Keep it under an alias, such as m:.math, for qualified calls, or spill its exports with :.math. The small example uses both forms. Available modules and target restrictions are listed separately in the library reference.
Forms in this category
- qualified module handles
- module-export spill
- local and nested modules — design or partial support
Import and call a qualified module
Expected result · 0.7.5 preview
9
Specific example sources are checked separately from the complete category. Coverage and specification mapping
07Reaching in: members and indicesExamples + scope
Reach a named field through record.field, a tuple slot through tuple.0, and an indexed selection through value.(selector). A colon retains an axis in a multidimensional selection. The slicing example shows exactly which elements the browser preview returns.
| Index token | Meaning |
|---|---|
| : | Preserve one existing dimension |
| ... | Preserve all remaining dimensions |
| :: | Insert one size-one dimension |
Forms in this category
- named and positional members
- computed member selection
- multidimensional index selection
- slices
- axis preservation markers
- singleton-axis insertion
Indexing and slicing
Expected result · 0.7.5 preview
[3, 4]
[1, 3]
[[[1, 2], [3, 4]]]
Specific example sources are checked separately from the complete category. Coverage and specification mapping
08Named and anonymous dimensionsExamples + scope
Attach dimension names where the relationship between axes matters. A function subscript states which dimensions it consumes; other dimensions remain in the result. Repeated labels can express diagonal selection. Work through the reduction and contraction examples to see how labels differ from storage positions.
| Suffix on a rank-five value | Axes |
|---|---|
| _i...k | (i,_,_,_,k) |
| _...ij | (_,_,_,i,j) |
| _ij... | (i,j,_,_,_) |
| _i...jk | (i,_,_,j,k) |
Forms in this category
- named dimensions
- anonymous dimensions
- repeated-axis diagonal
- structural ellipsis
- explicit contraction
Named dimensions and reductions
Expected result · 0.7.5 preview
[3, 7]
[1, 4]
Matrix contraction
Matrix contraction
Expected result · 0.7.5 preview
[[19, 22], [43, 50]]
Complex contractions
Complex contractions
Expected result · 0.7.5 preview
[[58 - 2i, 64 - 2i], [139 - 8i, 154 - 8i]]
Anonymous and named dimensions
Anonymous and named dimensions
Expected result · 0.7.5 preview
[[1, 2], [3, 4]]
[[[1, 2], [3, 4]], [[5, 6], [7, 8]]]
Named and anonymous dimensions
Named and anonymous dimensions
Expected result · 0.7.5 preview
[[19, 22], [43, 50]]
[1, 4]
Specific example sources are checked separately from the complete category. Coverage and specification mapping
09Vectorization and structural callsExamples + scope
An ordinary numerical function can act over compatible vector dimensions. A structural call instead presents selected dimensions to the function as a container. In the span example, changing the selected axis changes which values participate in each maximum-minus-minimum calculation.
Forms in this category
- ordinary lifting
- selected-axis structural calls
- dimension alignment
Lifting and structural calls
Expected result · 0.7.5 preview
[0, 2, 3]
Structural calls
Structural calls
Expected result · 0.7.5 preview
[1, 4]
Specific example sources are checked separately from the complete category. Coverage and specification mapping
10Operators and compositionExamples + scope
Operators express arithmetic and relationships, while concatenation and function composition build larger values and callables. Their meaning depends on the operand structure. The examples make the distinction concrete with printed results rather than treating every operator as a scalar-only operation.
| Form | Meaning |
|---|---|
| + - * / // % ^ | Elementwise arithmetic with dimensional alignment |
| = ~= ~ < <= > >= | Elementwise comparisons and logical operations |
| == != | Whole-value comparison |
| A &_i B | Concatenate along dimension i |
| A & B | Concatenate when one dimension can be inferred |
| f & g | Composition: apply f, then g |
| f+g, f^2 | Pointwise operations on compatible functions |
| +(a,b), *(a,b) | Call an operator as a function |
| => | Implication outside a matching arm |
| -> | Function / return type |
Forms in this category
- elementwise arithmetic
- elementwise comparison and logic
- whole-value equality
- operator values
- concatenation
- function composition
- pointwise function operations
- implicit multiplication
Concatenation
Expected result · 0.7.5 preview
[1, 2, 3, 4]
Function values and composition
Function values and composition
Expected result · 0.7.5 preview
[4, 6]
8
Specific example sources are checked separately from the complete category. Coverage and specification mapping
11Ranges and demandExamples + scope
Range endpoints are inclusive. A bounded observation can request a finite part of an unbounded range. The preview example demonstrates selected demand and empty work on small inputs. It does not establish disk-backed arrays, bounded memory for arbitrary datasets, or HDF5 access.
Forms in this category
- inclusive finite ranges
- descending ranges
- unbounded ranges
- finite consumer demand
- typed empty work — design or partial support
Lazy demand
Expected result · 0.7.5 preview
0
1
2
3
Specific example sources are checked separately from the complete category. Coverage and specification mapping
12Folds and recurrenceExamples + scope
A reduction combines a dimension; an ordered fold carries a value from one step to the next. Recurrence expresses values in terms of earlier values. These operations have different ordering requirements. Use the examples to compare their results before selecting one for an analysis.
Forms in this category
- ordered reduction
- multidimensional reduction
- sum product chain
- indexed specialization recurrence
Ordered folds
Expected result · 0.7.5 preview
6
Folds, recurrence and composition
Folds, recurrence and composition
Expected result · 0.7.5 preview
6
Folds, recurrence and composition
Folds, recurrence and composition
Expected result · 0.7.5 preview
0.052808601763274413 + 0.22361225622108541i
Specific example sources are checked separately from the complete category. Coverage and specification mapping
13Pipes and loop coordinatesExamples + scope
A pipe introduces a scope for the current value. $ refers to that value, additional dollar signs reach outer pipe scopes, and named coordinates refer to selected indices. Indentation controls nesting. The example keeps a short pipeline visible so each observation can be traced.
Forms in this category
- value pipes
- nested pipes
- named coordinates
- numbered loop indices
Pipes and loop coordinates
Expected result · 0.7.5 preview
0
0
10
1
1
20
Specific example sources are checked separately from the complete category. Coverage and specification mapping
14Conditionals and loopsExamples + scope
A question mark guards an expression or suite. The repeating conditional form continues while its condition holds. Return, continue and break forms transfer control within their surrounding function, loop or pipe. The runnable counter is deliberately finite and exposes the values at each step.
| Form | Meaning / surrounding scope |
|---|---|
| @: value | Return a value from the surrounding function; for example, a > b ? @: a. |
| @> | Continue the surrounding loop with its next iteration. |
| @| | Break out of the surrounding loop. |
| condition ?> followed by an indented suite | Repeat the suite while the condition holds. |
Forms in this category
- conditional expressions and suites
- condition loops
- return
- continue
- break
Repeat while a condition holds
Expected result · 0.7.5 preview
0
1
2
Specific example sources are checked separately from the complete category. Coverage and specification mapping
15Error handling and matchingExamples + scope
Matching selects a result from pattern arms. Errors can be raised, caught and matched; assertions check a relationship and can attach a message. The examples below demonstrate matching and typed raise/catch. For assertions, run the path checks and change an expected value to observe a failure. The browser output reports the actual program result.
| Form | Meaning / context |
|---|---|
| condition ?! "message" | Assert a condition; the path checks on the Run and embed page are an executable example. |
| Error("message")! | Raise a typed Error value, as in the example below. |
| expression !? followed by matching arms | Catch and match a raised typed error. |
Forms in this category
- value and type matching
- fallback arms
- match loops
- assertions
- typed raise
- typed catch and propagation
Conditions, matching and errors
Expected result · 0.7.5 preview
many
Conditions, matching and errors
Conditions, matching and errors
Expected result · 0.7.5 preview
message
Specific example sources are checked separately from the complete category. Coverage and specification mapping
16Nominal types and reflectionExamples + scope
A constructor can give a value a nominal identity in addition to its fields. Reflection and reconstruction describe how that structure is inspected or rebuilt. The point example tests field access after an operation; it is a bounded example rather than proof of every reconstruction rule.
Forms in this category
- nominal construction and reconstruction
- postfix type reflection
- field-name and field-type reflection — design or partial support
- operator and dotted-access overloads — design or partial support
Nominal reconstruction
Expected result · 0.7.5 preview
2
3
Nominal types, reflection and modules
Nominal types, reflection and modules
Expected result · 0.7.5 preview
2
Specific example sources are checked separately from the complete category. Coverage and specification mapping
17Function transforms and symbolic designExamples + scope
Transform a function into another function, then call the result. The derivative and integral examples exercise the forms supported by this preview. General symbolic-domain manipulation is a broader design area; the presence of symbolic library source does not make every transformation a verified browser feature.
Forms in this category
- exact function differentiation
- function integration
- transform specialization
- symbolic domains and assumptions — design or partial support
- shared semantic graph — design or partial support
Exact derivatives
Expected result · 0.7.5 preview
6
Symbolic domains and calculus
Symbolic domains and calculus
Expected result · 0.7.5 preview
6
9
Specific example sources are checked separately from the complete category. Coverage and specification mapping
18Physical dimensions and unit syntaxExamples + scope
A physical quantity carries dimensional meaning as well as a numerical value. Unit names provide scales, while physical dimensions describe compatibility. Import the SI catalog, combine compatible quantities and convert them explicitly. The examples show conversions; they do not qualify all dimension-exponent combinations.
Forms in this category
- physical dimension expressions
- unit literals
- quantity conversion
- dimensional arithmetic
Physical domains and units
Expected result · 0.7.5 preview
230 cm
[100, 200, 300] cm
Specific example sources are checked separately from the complete category. Coverage and specification mapping
19Strings and templatesExamples + scope
Double-quoted strings are immediate values; single-quoted templates defer formatting. A template can name fields and specify formatting when it is applied to a record. The runnable example prints a formatted pair, keeping formatting behavior separate from numerical computation.
Forms in this category
- immediate strings
- deferred templates
- field and formatting interpolation
Templates
Expected result · 0.7.5 preview
x = 1.3
[1.3, 2.5]
Strings and templates
Strings and templates
Expected result · 0.7.5 preview
[1.2, 4.6]
Specific example sources are checked separately from the complete category. Coverage and specification mapping
20Views, geometry and physical designExamples + scope
A viewport receives coordinate data as layers and displays the resulting scene. The example creates a connected curve. Broader physical laws, embeddings and geometry topology remain design or partial implementation areas; a rendered curve does not establish a complete simulation or automatic GPU execution contract.
| Design operation | Intended meaning |
|---|---|
| set(...) | Change persistent configuration |
| add(...) | Create one layer |
| push() | Freeze / push the composed state |
| append(...) | Add and push |
| show() | Display |
| plot(...) | Append and show |
The table describes the intended interface. The checked examples establish add, push and show; set, append and plot remain unqualified in this browser package.
Forms in this category
- viewport construction
- coordinate properties
- connected topology
- explicit topology
- retained state push
- physical laws and prescribed state — design or partial support
Connected geometry
Specific example sources are checked separately from the complete category. Coverage and specification mapping
21Event and I/O concurrencyExamples + scope
Queues, isolated processes, broadcast subscriptions and shared values coordinate event-oriented work. They are distinct from the compiler's numerical execution choices. The example starts a producer, handles queued messages and joins the producer. Host filesystem and OS command capabilities have their own target restrictions.
| Form | Meaning |
|---|---|
| process(worker,10,events:events) | Start an isolated concurrent function with ordinary positional/named arguments |
| p.join() | Wait and return the worker result |
| p.kill() | Forced termination |
| queue() | Destructive FIFO queue |
| q.put(value) | Send one item |
| q.get() | Suspend until an item is available |
| broadcast() | Publish to active subscribers |
| b.subscribe() | Create a subscriber stream |
| shared(value) | Share exactly one ordinary value |
Forms in this category
- isolated process call
- blocking queue
- broadcast subscriptions
- immutable shared values
Event and I/O concurrency
Expected result · 0.7.5 preview
1
2
Specific example sources are checked separately from the complete category. Coverage and specification mapping
22Open grammar decisionsUnsettled
Some language decisions remain unsettled. The list below is explicit so incomplete cleanup, sharing, control-binding and declaration forms are not mistaken for usable syntax. No fabricated runnable example is supplied for an undecided construct.
- deterministic external-resource cleanup
- publishing shared generations
- complete UI control binding grammar
- complete unit-literal/suffix precedence combinations
- final process variadic declaration
Foundational design rules
The inventory also maps the specification’s foundational clauses to their relevant categories.
- 0.1 / Dimensions and indexed values
- 0.2 / Ordinary lifting
- 0.3 / Structural suffix application
- 0.4 / Elementwise and structural operators
- 0.5 / Concatenation and composition
- 0.6 / First-class functions and operators
- 0.7 / Explicit specialization
- 0.8 / Operator specialization
- 0.9 / Indexed specialization
- 0.10 / General fold
- 0.11 / Multidimensional reduction
- 0.12 / Named reductions
- 0.13 / Recurrence
- 0.14 / Function-variable transforms
- 0.15 / Differentiation
- 0.16 / Integration parameters
- 0.17 / Transform specialization
- 0.18 / Shared semantic graph
- 0.19 / Lazy vectors and inclusive ranges
- 0.20 / Pipes, matching, scopes and control
- 0.21 / Spill-backed nominal values
- 0.22 / Initial visual integration cases
Specification source: 0de4a2b32b7d. The module reference is separate from language syntax.