Function init [src]

The allocator is only used to track [] and {} nesting levels.

Prototype

pub fn init(allocator: Allocator, io_reader: *std.Io.Reader) @This()

Parameters

allocator: Allocatorio_reader: *std.Io.Reader

Source

pub fn init(allocator: Allocator, io_reader: *std.Io.Reader) @This() { return .{ .scanner = Scanner.initStreaming(allocator), .reader = io_reader, }; }