Documentação
Versão v0.4.0
Aprenda a linguagem, consulte uma construção ou entregue ao seu agente a referência dele. Cada página corresponde à versão indicada nela.
Esta página ainda não foi traduzida; os links abaixo levam às páginas em inglês.
Começar
Get startedInstall Una, write a contract, watch it fail and fix it, then build a native executable.em inglêsEditor setupDiagnostics and formatting in your editor, through the language server.em inglês
Guias
Aprender
Una by ExampleO livro: programas pequenos e completos, uma ideia por página.em inglêsExamplesComplete packages to check, test and run, from the smallest.em inglês
Guia da linguagem
At a glanceEdition 0.2 on one page, with a link to each construct.em inglêsLexical structureNames, literals, comments and indentation.em inglêsModules and importsSplit a package into modules and import between them.em inglêsKinds and typesRecords, variants, refined types and units of measure.em inglêsFunctions and contractsWrite a function and say what it requires and ensures.em inglêsExpressions and control flowConditions, pattern matching, loops and blocks.em inglêsErrorsFailures are values: declare them, raise them, handle them.em inglêsCapabilities and effectsSay what a function may touch outside the program.em inglêsInformation flowLabel sensitive data and keep it where it belongs.em inglêsRequirementsTie a contract to the requirement it comes from.em inglêsExamples as testsExamples in the source that run as tests.em inglêsVerificationWhat una check proves, and what it reports when it cannot.em inglêsCanonical formOne way to write each program: what una fmt does.em inglêsA complete packageA whole package read from top to bottom.em inglêsNot in this editionWhat edition 0.2 leaves out, and where a later edition adds it.em inglês
Referência
Standard libraryThe types and functions every program has.em inglêsCommand lineEvery una command and its options.em inglêsConfigure a packageThe files of a package and every key they take.em inglêsDiagnosticsEach diagnostic code: what it means and how to fix it.em inglêsSpecificationThe normative text, chapter by chapter.em inglês
Interface para agentes
Una for agentsThe full guide for an agent that writes, checks and repairs Una.em inglêsUna, compactThe language in one page, sized for an agent's context.em inglêsThe loopThe cycle an agent repeats: format, check, fix, test.em inglêsJSON outputThe JSON each command returns, and how to read a diagnostic.em inglêsRepairsThe fixes a diagnostic proposes, in the order to try them.em inglêsBuild reportWhat a build proved, trusted and assumed, as one document.em inglêsSchemasThe schemas of the JSON documents the tools print.em inglês