Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Provisional API: This reference documents current compiler behavior. Compatibility is not yet promised.

src/editor.x

One-request semantic editor adapter.

Functions

FunctionSummary
editor_requestServes one private editor request after process environment initialization.

Functions

editor_request

int editor_request(int argc, char **argv)

Serves one private editor request after process environment initialization. Metadata precedes ordinary compiler arguments after --; source snapshots and the JSON response use separate files. Returns zero for a written response and two for a failed request or unsupported configuration.

Source: src/editor.x:157

Design notes

Uses the ordinary compiler frontend and a separate response file so macro output cannot corrupt editor results. Each process owns one request.