class

CSS::Lexer

Inherits CSS::TokenEmitter < Reference < Object

Constructors

new(s : String, last : Int32 = 0, pos : Int32 = 0)
Source

Instance methods

backup
Source
emit(t : TokenType)
Source
errorf(err) : Nil
Source
next
Source
parse_all

Synchronous mode: parse all tokens upfront into a buffer

Source
parse_colon
Source
parse_comment
Source
parse_hash
Source
parse_ident
Source
parse_next
Source
parse_num_or_dot
Source
parse_space
Source
parse_string
Source
peek
Source
skip_escape

skip_escape skips the characters following the escape character ''. it assumes that the lexer has already consumed this character.

Source
skip_ident

skip_ident attempts to move the lexer to the end of the next identifier. if return false, the lexer was not advanced.

Source
skip_nums
Source
skip_space
Source
token
Source