Language Examples
This section contains complete, independently compilable First fragments. The examples are inputs for compound parser tests and editor visualizations rather than a progressive tutorial.
Each example uses ordinary serialized First source. Editor-generated glyphs and other derived presentation do not appear in the code blocks.
The collection includes ordinary programs, composed programs, and realistically dense programs. Dense examples exercise difficult editor layouts while remaining idiomatic, readable, and suitable for line-by-line debugging.
Example Groups
- 02-Values-Arrays-And-Ranges
- 03-Strings-And-Text
- 04-Functions-And-Calls
- 05-Control-Flow-And-Matches
- 06-Classes-And-Objects
- 07-Types-And-Selections
- 08-Representative-Complex-Programs
Fixture Rules
Every fenced first block in this section must:
- Compile independently.
- Contain only raw First source.
- Use idiomatic formatting.
- Avoid undeclared application-specific dependencies.
- Demonstrate plausible program code rather than parser torture or code golf.