gtkc.glibtypes.GScannerConfig Struct Reference


Detailed Description

Specifies the GScanner settings.

cset_skip_characters specifies which characters should be skipped by the scanner (the default is the whitespace characters: space, tab, carriage-return and line-feed). cset_identifier_first specifies the characters which can start identifiers (the default is G_CSET_a_2_z, "_", and G_CSET_A_2_Z). cset_identifier_nth specifies the characters which can be used in identifiers, after the first character (the default is G_CSET_a_2_z, "_0123456789", G_CSET_A_2_Z, G_CSET_LATINS, G_CSET_LATINC). cpair_comment_single specifies the characters at the start and end of single-line comments. The default is "#\n" which means that single-line comments start with a '#' and continue until a '
' (end of line). case_sensitive specifies if symbols are case sensitive (the default is FALSE). skip_comment_multi specifies if multi-line comments are skipped and not returned as tokens (the default is TRUE). skip_comment_single specifies if single-line comments are skipped and not returned as tokens (the default is TRUE). scan_comment_multi specifies if multi-line comments are recognized (the default is TRUE). scan_identifier specifies if identifiers are recognized (the default is TRUE). scan_identifier_1char specifies if single-character identifiers are recognized (the default is FALSE). scan_identifier_NULL specifies if NULL is reported as G_TOKEN_IDENTIFIER_NULL. (the default is FALSE). scan_symbols specifies if symbols are recognized (the default is TRUE). scan_binary specifies if binary numbers are recognized (the default is FALSE). scan_octal specifies if octal numbers are recognized (the default is TRUE). scan_float specifies if floating point numbers are recognized (the default is TRUE). scan_hex specifies if hexadecimal numbers are recognized (the default is TRUE). scan_hex_dollar specifies if '$' is recognized as a prefix for hexadecimal numbers (the default is FALSE). scan_string_sq specifies if strings can be enclosed in single quotes (the default is TRUE). scan_string_dq specifies if strings can be enclosed in double quotes (the default is TRUE). numbers_2_int specifies if binary, octal and hexadecimal numbers are reported as G_TOKEN_INT (the default is TRUE). int_2_float specifies if all numbers are reported as G_TOKEN_FLOAT (the default is FALSE). identifier_2_string specifies if identifiers are reported as strings (the default is FALSE). char_2_token specifies if characters are reported by setting token = ch or as G_TOKEN_CHAR (the default is TRUE). symbol_2_token specifies if symbols are reported by setting token = v_symbol or as G_TOKEN_SYMBOL (the default is FALSE). scope_0_fallback specifies if a symbol is searched for in the default scope in addition to the current scope (the default is FALSE).


SourceForge.net Logo DSource.org Logo digitalmars.com Logo