Skip to documentation
SLOP

tiny.chant.lexer

Reference tiny.chant lexer

Defined in tiny.chant.

API (10)

Actions

Public operations.

Types and contracts

Public types and contracts.

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

Source

Source: lib/chant/src/lexer/error.zig:1

zig
pub const Error = error{    UnexpectedCharacter,    UnterminatedString,    UnterminatedCharacter,    UnterminatedComment,};

Source: lib/chant/src/lexer/scan.zig:11

zig
pub fn next(self: anytype) Error!Token {    try trivia.skip(self);    const start = self.index;    const column: u32 = @intCast(self.index - self.line_start + 1);    if (self.index >= self.source.len) {        return .{            .kind = .eof,            .text = self.source[start..self.index],            .file = self.file,            .line = self.line,            .column = column,        };    }    if (try literal.lex(self, start, column)) |tok| return tok;    if (identifier.lex(self, start, column)) |tok| return tok;    if (number.lex(self, start, column)) |tok| return tok;    return punctuator.lex(self, start, column);}
Called byCallsTokenStoragefilllexersurveytest sourcelib.chant.src.lexer.streamtest: token survey and fill match dir...tiny.sqldiff.Scannexttiny.sqlStatementCursornextRowid+2 moreprivate sourcelib.chant.src.lexer.identifierlexprivate sourcelib.chant.src.lexer.literallexprivate sourcelib.chant.src.lexer.numberlexprivate sourcelib.chant.src.lexer.punctuatorlexprivate sourcelib.chant.src.lexer.triviaskiplexernext
Static calls · unresolved targets: 0 · external targets: 0.

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

zig
const scan = @import("scan.zig");const state = @import("state.zig");const stream = @import("stream.zig");pub const Error = @import("error.zig").Error;pub const Lexer = state.Lexer;pub const Limits = stream.Limits;pub const Capacity = stream.Capacity;pub const CapacityError = stream.CapacityError;pub const Storage = stream.Storage;pub const Survey = stream.Survey;pub const Exhaustion = stream.Exhaustion;pub const next = scan.next;pub const survey = stream.survey;

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

zig
pub const lexer = @import("lexer/root.zig");

Complete caller list for lexer.next

7 direct callers.

Audit

Definitions3
Public names3
Members4
Version26.7.0
Revisiondaab053ee433