Exemplos
Estes 50 exemplos vêm diretamente de segfaultcafe/flecha. O código e os identificadores permanecem iguais ao original; as páginas individuais estão em inglês.
Linguagem e fluxo de controle
Seção intitulada “Linguagem e fluxo de controle”- Hello
- Stdout
- Native Functions
- Numeric Casts
- Structures
- Tuples
- Const Declarations
- If Also
- While Also
- Iteration
- Loop Control
- Fixed Arrays
- String View
- Error Values
- Defer
- Callables
- Once
Memória e propriedade
Seção intitulada “Memória e propriedade”- Checked References
- Checked Slices
- Ref And Slice Returns
- Ownership Contracts
- Raw Allocation
- Unsafe Pointers
- Memory Tracking
Biblioteca padrão e compilação
Seção intitulada “Biblioteca padrão e compilação”- Callback Algorithms
- Standard library modules
- Generic dynamic array
- LLVM IR proof of concept
- Standard-library qualification program
- Standard-library public API fixture
- Standard-library public API tests
Aplicativos completos
Seção intitulada “Aplicativos completos”- Workspace Guard commands
- Workspace Guard application
- Workspace Guard manifest
- Workspace Guard model
- Workspace Guard scanner
- Ledger commands
- Ledger canonical codec
- Ledger golden-vector tests
- Deterministic ledger application
- Ledger model
- Ledger storage
Diagnósticos do compilador
Seção intitulada “Diagnósticos do compilador”- Invalids
- Checked References
- Checked Slices
- Compound Types
- Const Declarations
- Fixed Arrays
- Iteration
- Unsafe Pointers
Executar um exemplo
Seção intitulada “Executar um exemplo”build/flecha check examples/hello.flbuild/flecha build examples/hello.fl -o build/hello./build/hello