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§
Constants§
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
.aclsource 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.