enum CSS::TokenType

Defined in:

html5/css/lexer.cr

Enum Members

Astr = 0
Bar = 1
Colon = 2
Comma = 3
Dimension = 4
Dot = 5
Function = 6
Hash = 7
Ident = 8
LeftBrace = 9
Match = 10
MatchDash = 11
MatchIncludes = 12
MatchPrefix = 13
MatchSubStr = 14
MatchSuffix = 15
Not = 16
Number = 17
Plus = 18
RightBrace = 19
RightParen = 20
Space = 21
String = 22
Sub = 23
Greater = 24
Tilde = 25
Comment = 26
Error = 27
EOF = 28

Class Method Summary

Instance Method Summary

Class Method Detail

def self.from(c : Char) #

not included ':' may be ':not(', must check that first '.' may be the beginning of a number


[View source]

Instance Method Detail

def astr? #

[View source]
def bar? #

[View source]
def colon? #

[View source]
def comma? #

[View source]
def comment? #

[View source]
def dimension? #

[View source]
def dot? #

[View source]
def eof? #

[View source]
def error? #

[View source]
def function? #

[View source]
def greater? #

[View source]
def hash? #

[View source]
def ident? #

[View source]
def left_brace? #

[View source]
def match? #

[View source]
def match_dash? #

[View source]
def match_includes? #

[View source]
def match_prefix? #

[View source]
def match_sub_str? #

[View source]
def match_suffix? #

[View source]
def not? #

[View source]
def number? #

[View source]
def plus? #

[View source]
def right_brace? #

[View source]
def right_paren? #

[View source]
def space? #

[View source]
def string? #

[View source]
def sub? #

[View source]
def tilde? #

[View source]
def to_s #
Description copied from struct Enum

Returns a String representation of this enum member. In the case of regular enums, this is just the name of the member. In the case of flag enums, it's the names joined by vertical bars, or "None", if the value is zero.

If an enum's value doesn't match a member's value, the raw value is returned as a string.

Color::Red.to_s                     # => "Red"
IOMode::None.to_s                   # => "None"
(IOMode::Read | IOMode::Write).to_s # => "Read | Write"

Color.new(10).to_s # => "10"

[View source]