Skip to main content
Go to Latest
class Scanner
import { Scanner } from "https://deno.land/std@0.166.0/encoding/_toml/parser.ts";

Constructors

new
Scanner(source: string)

Methods

char(index?)

Get current character

eof()

Position reached EOF or not

next(count?: number)

Move position to next

nextUntilChar(options?: { inline?: boolean; comment?: boolean; })

Move position until current char is not a whitespace, EOL, or comment.

Get current position

slice(start: number, end: number): string

Get sliced string