Language reference
Every declaration arche-lang accepts, with its syntax, its properties and an example.
There is one page per group of declarations.
A complete file using every declaration is examples/patterns/patterns.arche.
| Page | What it covers | Declarations |
|---|---|---|
| Basics | The rules every arche-lang file follows, before any declaration. | |
| Project & files | How a project is set up, split over files, and given its libraries and generators. | project, library, translations, include, package, raw, file, generator, importer, exporter, option |
| Catalogs | The words a project defines for itself: kinds, layers, tags, colours and port types. | kind, layer, tag, color, port-type, wire |
| Data | The types, constants and messages a model uses. | type, enum, struct, field, const, message |
| Operational & requirements | Who uses the system, what it is for, and what it shall do. | actor, mission, requirement, verify, means, defaults, decision, deliverable |
| Structure | The parts of a system, their ports, and the links between them. | system, component, port, interface, contract, handler, link, icd, canvas |
| Behaviour | What the parts do: functions, variables, memory maps and state machines. | fn, var, memory, states, state, transition, event |
| Deployment | Where the parts run: processors, containers, processes and threads. | core, deployment, container, binary, process, thread, isr, route, chain, watchdog, allocator, place |
| Safety | Hazards, safety goals, failure modes and fault trees. | hazard, safety-goal, failure-mode, gate, control-action, uca, loss-scenario |
| Cybersecurity | The threat analysis: assets, threats, attack paths and security goals. | asset, damage-scenario, threat, attack-path, security-goal |
| Design space | The numbers a design is sized for, its variants, and the studies that compare them. | parameter, variant, study, viewpoint |
| Scenarios, verification & traceability | Scenarios, tests and simulation runs that show the system does what it should. | scenario, workflow, participant, sequence, alt, when, ref, test-plan, case, cases, step, trace, simulation, stimulus, keyframe |
| Product UI | The screens of the product and what is on them. | ui, screen, dialog, overlay, row, column, grid, stack, spacer, label, gauge, bar, chart, telltale, image, list, table, button, toggle, slider, select, input, stepper, preview, var, custom, element, for, if, else, fits |
| Functional analysis, operations & the app | Use cases, system functions, operating modes, and what the Arche app shows. | use-case, system-function, function-flow, function-chain, step, edge, operating-mode, story, benchmark, run, panel, widget, app, page, tab, visual, animation, rule, table, column, unit, property, tag-group, plugin, menu, entry |
| Lint rules | Every problem archec check can report, by area, with its code and severity. |