GLib.ScannerConfig¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
case_sensitive |
r/w |
specifies if symbols are case sensitive (the default is |
|
char_2_token |
r/w |
specifies if characters are reported by setting |
|
cpair_comment_single |
r/w |
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 ‘\n’ (end of line). |
|
cset_identifier_first |
r/w |
specifies the characters which can start identifiers (the default is |
|
cset_identifier_nth |
r/w |
specifies the characters which can be used in identifiers, after the first character (the default is |
|
cset_skip_characters |
r/w |
specifies which characters should be skipped by the scanner (the default is the whitespace characters: space, tab, carriage-return and line-feed). |
|
identifier_2_string |
r/w |
specifies if identifiers are reported as strings (the default is |
|
int_2_float |
r/w |
specifies if all numbers are reported as |
|
numbers_2_int |
r/w |
specifies if binary, octal and hexadecimal numbers are reported as |
|
padding_dummy |
r |
||
scan_binary |
r/w |
specifies if binary numbers are recognized (the default is |
|
scan_comment_multi |
r/w |
specifies if multi-line comments are recognized (the default is |
|
scan_float |
r/w |
specifies if floating point numbers are recognized (the default is |
|
scan_hex |
r/w |
specifies if hexadecimal numbers are recognized (the default is |
|
scan_hex_dollar |
r/w |
specifies if ‘$’ is recognized as a prefix for hexadecimal numbers (the default is |
|
scan_identifier |
r/w |
specifies if identifiers are recognized (the default is |
|
scan_identifier_1char |
r/w |
specifies if single-character identifiers are recognized (the default is |
|
scan_identifier_NULL |
r/w |
specifies if |
|
scan_octal |
r/w |
specifies if octal numbers are recognized (the default is |
|
scan_string_dq |
r/w |
specifies if strings can be enclosed in double quotes (the default is |
|
scan_string_sq |
r/w |
specifies if strings can be enclosed in single quotes (the default is |
|
scan_symbols |
r/w |
specifies if symbols are recognized (the default is |
|
scope_0_fallback |
r/w |
specifies if a symbol is searched for in the default scope in addition to the current scope (the default is |
|
skip_comment_multi |
r/w |
specifies if multi-line comments are skipped and not returned as tokens (the default is |
|
skip_comment_single |
r/w |
specifies if single-line comments are skipped and not returned as tokens (the default is |
|
store_int64 |
r/w |
use value.v_int64 rather than v_int |
|
symbol_2_token |
r/w |
specifies if symbols are reported by setting |
Methods¶
None
Details¶
- class GLib.ScannerConfig¶
Specifies the
GLib.Scanner
parser configuration. Most settings can be changed during the parsing phase and will affect the lexical parsing of the next unpeeked token.