Skip to main content

Module idl

Module idl 

Source
Expand description

IDL — Interface Definition Language for ACL vocabularies (spec §18).

.acl files declare namespaced predicates and typed actions; aclc parses, type-checks, pretty-prints and generates code stubs.

Grammar (line-based):

namespace fs v1;
type Path = string;
/// doc comment attached to next decl
predicate file_exists(path: Path) -> bool;
action text_reverse(text: string) -> string;

Full name of a decl = <namespace>.<local> (e.g. fs.file_exists).

Structs§

Deprecation
§31: deprecation metadata for a declaration.
IdlError
IdlFile
Param

Enums§

Decl
Step
One step of a workflow: a single action, or a parallel group of actions.

Constants§

PRIMITIVES

Functions§

gen_py
Generate Python builder stubs.
gen_rust
Generate Rust builder stubs for a vocabulary.
gen_schema
Generate a runtime-validation schema (JSON) for gen schema.
gen_ts
Generate TypeScript builder stubs.
parse
Parse a .acl source file.
pretty
Canonical pretty-print (also the human-readable surface syntax). Declarations keep file order; params aligned; doc comments preserved.
typecheck
Type-check: all referenced types must be primitives or declared aliases; full names must be unique; predicate full name must not collide with action full name. Returns fully-qualified names.