Compiler & IR
The RAIQL compiler creates a deterministic boundary between human-authored requirements and the systems that generate or operate on software artifacts.
Compilation pipeline
The compiler strips comments, separates top-level statements, parses supported constructs, validates cross-references and then creates the RAIQL IR.
Intermediate representation
{
"language": "RAIQL",
"version": "1.0",
"application": { "name": "Inventory Hub", "type": "WEB" },
"stack": { "frontend": "NEXTJS", "backend": "NEXTJS", "database": "POSTGRESQL" },
"entities": [],
"relationships": [],
"apis": [],
"roles": [],
"permissions": [],
"ownership": [],
"actions": ["BUILD"]
}Runnable WEB generator
RAIQL 1.0 supports two executable database targets for TYPE WEB + NEXTJS. DATABASE MEMORY keeps the fast process-local runtime from 0.3. DATABASE POSTGRESQL emits Prisma ORM 7 models, PostgreSQL persistence, generated database access, Docker Compose infrastructure and migration commands.
Other stack selections remain valid language input and are preserved in the IR, but currently emit contracts rather than a runnable application. This keeps generated capability explicit instead of silently substituting frameworks.
Diagnostics
Errors stop a specification from being considered valid. Warnings preserve a compilable program while identifying missing or unusual intent—for example, an application with no explicit type.
Why an IR matters
The IR gives generators, validators, policy engines and AI-assisted engineering systems a stable structure to consume. They do not need to infer the same requirement independently from natural language.