Skip to main content
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class Scanner
import { Scanner } from "https://deno.land/std@0.106.0/encoding/_toml/parser.ts";

Constructors

new
Scanner(source: string)

Methods

char(index?)

Get current charactor

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