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? #

def char? #

def comma? #

def comment_multi? #

def comment_single? #

def eof? #

def equal_sign? #

def error? #

def float? #

def hex? #

def identifier? #

def identifier_null? #

def int? #

def left_brace? #

def left_curly? #

def left_paren? #

def none? #

def octal? #

def right_brace? #

def right_curly? #

def right_paren? #

def string? #

def symbol? #