class TOML::Lexer

Overview

Streaming lexer for TOML v1.0 documents.

Design notes

Defined in:

toml/lexer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String) #

[View source]

Instance Method Detail

def eof? : Bool #

Returns true if the lexer has consumed all input.


[View source]
def next_token : Token #

Returns the next token. Once the end of input is reached, returns an EOF token at the current position; subsequent calls keep returning EOF.


[View source]