GLib.TokenType

The possible types of token returned from each GLib.Scanner.prototype.get_next_token call.

TokenType.EOF

the end of the file

TokenType.LEFT_PAREN

a '(' character

TokenType.RIGHT_PAREN

a ')' character

TokenType.LEFT_CURLY

a '{' character

TokenType.RIGHT_CURLY

a '}' character

TokenType.LEFT_BRACE

a '[' character

TokenType.RIGHT_BRACE

a ']' character

TokenType.EQUAL_SIGN

a '=' character

TokenType.COMMA

a ',' character

TokenType.NONE

not a token

TokenType.ERROR

an error occurred

TokenType.CHAR

a character

TokenType.BINARY

a binary integer

TokenType.OCTAL

an octal integer

TokenType.INT

an integer

TokenType.HEX

a hex integer

TokenType.FLOAT

a floating point number

TokenType.STRING

a string

TokenType.SYMBOL

a symbol

TokenType.IDENTIFIER

an identifier

TokenType.IDENTIFIER_NULL

a null identifier

TokenType.COMMENT_SINGLE

one line comment

TokenType.COMMENT_MULTI

multi line comment