glib.scanner_config
Module for [ScannerConfig] class
class ScannerConfig
Types 1
classScannerConfig
Specifies the #GScanner parser configuration. Most settings can be changed during the parsing phase and will affect the lexical parsing of the next unpeeked token.
Fields
GScannerConfig _cInstanceMethods
void * _cPtr() nothrowstring csetSkipCharacters() @property nothrowGet `csetSkipCharacters` field. Returns: specifies which characters should be skipped by the scanner (the default is the whitespace characters: space, tab, carriage-return and line-feed).void csetSkipCharacters(string propval) @property nothrowSet `csetSkipCharacters` field. Params: propval = specifies which characters should be skipped by the scanner (the default is the whitespace characters: space, tab, carriage-return and line-feed).string csetIdentifierFirst() @property nothrowGet `csetIdentifierFirst` field. Returns: specifies the characters which can start identifiers (the default is [glib.types.CSET_a_2_z], "_", and [glib.types.CSET_A_2_Z]).void csetIdentifierFirst(string propval) @property nothrowSet `csetIdentifierFirst` field. Params: propval = specifies the characters which can start identifiers (the default is [glib.types.CSET_a_2_z], "_", and [glib.types.CSET_A_2_Z]).string csetIdentifierNth() @property nothrowGet `csetIdentifierNth` field. Returns: specifies the characters which can be used in identifiers, after the first character (the default is [glib.types.CSET_a_2_z], "_0123456789", [glib.types.CSET...void csetIdentifierNth(string propval) @property nothrowSet `csetIdentifierNth` field. Params: propval = specifies the characters which can be used in identifiers, after the first character (the default is [glib.types.CSET_a_2_z], "_0123456789", [glib.t...string cpairCommentSingle() @property nothrowGet `cpairCommentSingle` field. Returns: 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 conti...void cpairCommentSingle(string propval) @property nothrowSet `cpairCommentSingle` field. Params: propval = 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 '#' ...uint caseSensitive() @property nothrowGet `caseSensitive` field. Returns: specifies if symbols are case sensitive (the default is false).void caseSensitive(uint propval) @property nothrowSet `caseSensitive` field. Params: propval = specifies if symbols are case sensitive (the default is false).uint skipCommentMulti() @property nothrowGet `skipCommentMulti` field. Returns: specifies if multi-line comments are skipped and not returned as tokens (the default is true).void skipCommentMulti(uint propval) @property nothrowSet `skipCommentMulti` field. Params: propval = specifies if multi-line comments are skipped and not returned as tokens (the default is true).uint skipCommentSingle() @property nothrowGet `skipCommentSingle` field. Returns: specifies if single-line comments are skipped and not returned as tokens (the default is true).void skipCommentSingle(uint propval) @property nothrowSet `skipCommentSingle` field. Params: propval = specifies if single-line comments are skipped and not returned as tokens (the default is true).uint scanCommentMulti() @property nothrowGet `scanCommentMulti` field. Returns: specifies if multi-line comments are recognized (the default is true).void scanCommentMulti(uint propval) @property nothrowSet `scanCommentMulti` field. Params: propval = specifies if multi-line comments are recognized (the default is true).uint scanIdentifier() @property nothrowGet `scanIdentifier` field. Returns: specifies if identifiers are recognized (the default is true).void scanIdentifier(uint propval) @property nothrowSet `scanIdentifier` field. Params: propval = specifies if identifiers are recognized (the default is true).uint scanIdentifier1char() @property nothrowGet `scanIdentifier1char` field. Returns: specifies if single-character identifiers are recognized (the default is false).void scanIdentifier1char(uint propval) @property nothrowSet `scanIdentifier1char` field. Params: propval = specifies if single-character identifiers are recognized (the default is false).uint scanIdentifierNULL() @property nothrowGet `scanIdentifierNULL` field. Returns: specifies if null is reported as `G_TOKEN_IDENTIFIER_NULL` (the default is false).void scanIdentifierNULL(uint propval) @property nothrowSet `scanIdentifierNULL` field. Params: propval = specifies if null is reported as `G_TOKEN_IDENTIFIER_NULL` (the default is false).uint scanSymbols() @property nothrowGet `scanSymbols` field. Returns: specifies if symbols are recognized (the default is true).void scanSymbols(uint propval) @property nothrowSet `scanSymbols` field. Params: propval = specifies if symbols are recognized (the default is true).uint scanBinary() @property nothrowGet `scanBinary` field. Returns: specifies if binary numbers are recognized (the default is false).void scanBinary(uint propval) @property nothrowSet `scanBinary` field. Params: propval = specifies if binary numbers are recognized (the default is false).uint scanOctal() @property nothrowGet `scanOctal` field. Returns: specifies if octal numbers are recognized (the default is true).void scanOctal(uint propval) @property nothrowSet `scanOctal` field. Params: propval = specifies if octal numbers are recognized (the default is true).uint scanFloat() @property nothrowGet `scanFloat` field. Returns: specifies if floating point numbers are recognized (the default is true).void scanFloat(uint propval) @property nothrowSet `scanFloat` field. Params: propval = specifies if floating point numbers are recognized (the default is true).uint scanHex() @property nothrowGet `scanHex` field. Returns: specifies if hexadecimal numbers are recognized (the default is true).void scanHex(uint propval) @property nothrowSet `scanHex` field. Params: propval = specifies if hexadecimal numbers are recognized (the default is true).uint scanHexDollar() @property nothrowGet `scanHexDollar` field. Returns: specifies if '$' is recognized as a prefix for hexadecimal numbers (the default is false).void scanHexDollar(uint propval) @property nothrowSet `scanHexDollar` field. Params: propval = specifies if '$' is recognized as a prefix for hexadecimal numbers (the default is false).uint scanStringSq() @property nothrowGet `scanStringSq` field. Returns: specifies if strings can be enclosed in single quotes (the default is true).void scanStringSq(uint propval) @property nothrowSet `scanStringSq` field. Params: propval = specifies if strings can be enclosed in single quotes (the default is true).uint scanStringDq() @property nothrowGet `scanStringDq` field. Returns: specifies if strings can be enclosed in double quotes (the default is true).void scanStringDq(uint propval) @property nothrowSet `scanStringDq` field. Params: propval = specifies if strings can be enclosed in double quotes (the default is true).uint numbers2Int() @property nothrowGet `numbers2Int` field. Returns: specifies if binary, octal and hexadecimal numbers are reported as `G_TOKEN_INT` (the default is true).void numbers2Int(uint propval) @property nothrowSet `numbers2Int` field. Params: propval = specifies if binary, octal and hexadecimal numbers are reported as `G_TOKEN_INT` (the default is true).uint int2Float() @property nothrowGet `int2Float` field. Returns: specifies if all numbers are reported as `G_TOKEN_FLOAT` (the default is false).void int2Float(uint propval) @property nothrowSet `int2Float` field. Params: propval = specifies if all numbers are reported as `G_TOKEN_FLOAT` (the default is false).uint identifier2String() @property nothrowGet `identifier2String` field. Returns: specifies if identifiers are reported as strings (the default is false).void identifier2String(uint propval) @property nothrowSet `identifier2String` field. Params: propval = specifies if identifiers are reported as strings (the default is false).uint char2Token() @property nothrowGet `char2Token` field. Returns: specifies if characters are reported by setting `token = ch` or as `G_TOKEN_CHAR` (the default is true).void char2Token(uint propval) @property nothrowSet `char2Token` field. Params: propval = specifies if characters are reported by setting `token = ch` or as `G_TOKEN_CHAR` (the default is true).uint symbol2Token() @property nothrowGet `symbol2Token` field. Returns: specifies if symbols are reported by setting `token = v_symbol` or as `G_TOKEN_SYMBOL` (the default is false).void symbol2Token(uint propval) @property nothrowSet `symbol2Token` field. Params: propval = specifies if symbols are reported by setting `token = v_symbol` or as `G_TOKEN_SYMBOL` (the default is false).uint scope0Fallback() @property nothrowGet `scope0Fallback` field. Returns: specifies if a symbol is searched for in the default scope in addition to the current scope (the default is false).void scope0Fallback(uint propval) @property nothrowSet `scope0Fallback` field. Params: propval = specifies if a symbol is searched for in the default scope in addition to the current scope (the default is false).uint storeInt64() @property nothrowGet `storeInt64` field. Returns: use value.v_int64 rather than v_intvoid storeInt64(uint propval) @property nothrowSet `storeInt64` field. Params: propval = use value.v_int64 rather than v_int