Expand description
Between the platform and a parser process, over the process’s stdin and stdout: frames of a 4-byte big-endian length and that many bytes.
- The process starts by sending a
Hello, which the platform takes only if it isHello::of_this_buildwith the published fingerprint. - Each request is a
Requestframe, then a frame of the statement. - Each answer is an
Answerframe, and afterAnswer::Treea frame of the tree’s canonical text.
Structs§
- Hello
- What a process greets with: the terms it was built to, and its parser’s identity, which it computes by parsing the probe corpus.
- Request
Enums§
Constants§
- MAX_
CONTROL_ FRAME - The most a
Hello,RequestorAnswerframe holds. - PROTOCOL
- The version of this exchange: its frames and messages, the bounds both sides apply and the tree’s canonical text. It changes whenever any of them does, so a platform never uses a process built to other terms.
Functions§
- frame_
len - The length a frame’s header announces, refused past
max. - read_
frame - The next frame,
Noneat a clean end of input, and an error for a frame pastmaxbytes, which is never read. - read_
message - write_
frame - write_
message