Reference
Language reference
Every rule in pin, in the order the spec states it. Each section lists its rules as scenarios. Each scenario is a rule the compiler enforces or a behavior it has.
This reference is generated from language.md. The spec is the single source of truth, so this page cannot drift from it.
- 1. Philosophy
- 2. Terms
- 3. Writing rules
- 4. Lexical rules
- 5. Formal grammar
- 6. Operator precedence
- 7. Bindings
- 8. Destructuring
- 9. Functions
- 10. Mutable parameters
- 11. Shared bindings in worker files
- 12. Contracts
- 13. Tests and assertions
- 14. Typed holes, match, and comprehensions
- 15. Ranges, values, and operators
- 16. Control flow
- 17. Errors
- 18. Classes and modules
- 19. Labelled arguments
- 20. Types
- 21. Decorators
- 22. WebAssembly (@wasm)
- 23. Memo
- 24. Workers
- 25. Transfer
- 26. Streams
- 27. Regex blocks
- 28. Formatter
- 29. Build, CLI, and outputs
- 30. Error message style
- 31. Keywords
- 32. Stability
- 33. Known gaps
- 34. Changing the language
- 35. Equivalence check