enum GLib::TokenType

Overview

The possible types of token returned from each g_scanner_get_next_token() call.

Defined in:

lib/gi-crystal/src/auto/g_lib-2.0/g_lib.cr

Enum Members

Eof = 0_u32

the end of the file

LeftParen = 40_u32

a '(' character

RightParen = 41_u32

a ')' character

LeftCurly = 123_u32

a '{' character

RightCurly = 125_u32

a '}' character

LeftBrace = 91_u32

a '[' character

RightBrace = 93_u32

a ']' character

EqualSign = 61_u32

a '=' character

Comma = 44_u32

a ',' character

None = 256_u32

not a token

Error = 257_u32

an error occurred

Char = 258_u32

a character

Binary = 259_u32

a binary integer

Octal = 260_u32

an octal integer

Int = 261_u32

an integer

Hex = 262_u32

a hex integer

Float = 263_u32

a floating point number

String = 264_u32

a string

Symbol = 265_u32

a symbol

Identifier = 266_u32

an identifier

IdentifierNull = 267_u32

a null identifier

CommentSingle = 268_u32

one line comment

CommentMulti = 269_u32

multi line comment

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Instance Method Detail

def binary? #

[View source]
def char? #

[View source]
def comma? #

[View source]
def comment_multi? #

[View source]
def comment_single? #

[View source]
def eof? #

[View source]
def equal_sign? #

[View source]
def error? #

[View source]
def float? #

[View source]
def hex? #

[View source]
def identifier? #

[View source]
def identifier_null? #

[View source]
def int? #

[View source]
def left_brace? #

[View source]
def left_curly? #

[View source]
def left_paren? #

[View source]
def none? #

[View source]
def octal? #

[View source]
def right_brace? #

[View source]
def right_curly? #

[View source]
def right_paren? #

[View source]
def string? #

[View source]
def symbol? #

[View source]