Skip to documentation
SLOP

tiny.chant.TokenSurvey

Reference tiny.chant TokenSurvey

Defined in tiny.chant.

The result of a counting pass (survey) over one source: how many tokens the source holds, counting the end-of-file token, and the address and length of both the source text and the file name.

API (5)

Fields and members

Public fields and members.

No direct callersNo direct callstiny.chantTokenSurvey
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/chant/src/lexer/stream.zig:23

zig
/// The result of a counting pass (survey) over one source: how many tokens the/// source holds, counting the end-of-file token, and the address and length of/// both the source text and the file name. A caller gets one from `survey` and/// passes it to `Storage.fill`. `fill` compares those addresses and lengths/// with the slices it is given and returns `error.SurveySourceMismatch` when/// any of them differs. The caller owns the source and file-name bytes and/// keeps them at the same address and unchanged from the survey through the/// last use of the tokens, because the check reads addresses and lengths and no/// bytes.pub const Survey = struct {    source_ptr: [*]const u8,    source_len: usize,    file_ptr: [*]const u8,    file_len: usize,    limits: Limits,};

Source: lib/chant/src/root.zig:75

zig
pub const TokenSurvey = lexer.Survey;

Also reachable as

lexer.Survey.

Audit

Definitions1
Public names2
Members5
Version26.7.0
Revisiondaab053ee433