class CSS::Lexer

Included Modules

Defined in:

html5/css/lexer.cr

Constructors

Instance Method Summary

Instance methods inherited from module CSS::TokenEmitter

token : Token token

Constructor Detail

def self.new(s : String, last : Int32 = 0, pos : Int32 = 0) #

[View source]

Instance Method Detail

def backup #

[View source]
def emit(t : TokenType) #

[View source]
def eof : Nil #

[View source]
def errorf(err) : Nil #

[View source]
def next #

[View source]
def parse_colon #

[View source]
def parse_comment #

[View source]
def parse_hash #

[View source]
def parse_ident #

[View source]
def parse_next #

[View source]
def parse_num_or_dot #

[View source]
def parse_space #

[View source]
def parse_string #

[View source]
def peek #

[View source]
def skip_escape : Nil #

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


[View source]
def skip_ident #

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


[View source]
def skip_nums #

[View source]
def skip_space #

[View source]
def token : Token #

[View source]