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.
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
Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 5 |
| Version | 26.7.0 |
| Revision | daab053ee433 |