glib.scanner_config

Module for [ScannerConfig] class

Types 1

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 _cInstance
Methods
void * _cPtr()
string csetSkipCharacters() @propertyGet `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) @propertySet `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() @propertyGet `csetIdentifierFirst` field. Returns: specifies the characters which can start identifiers (the default is [glib.types.CSETa2z], "", and [glib.types.CSETA2_Z]).
void csetIdentifierFirst(string propval) @propertySet `csetIdentifierFirst` field. Params: propval = specifies the characters which can start identifiers (the default is [glib.types.CSETa2z], "", and [glib.types.CSETA2_Z]).
string csetIdentifierNth() @propertyGet `csetIdentifierNth` field. Returns: specifies the characters which can be used in identifiers, after the first character (the default is [glib.types.CSETa2z], "0123456789", [glib.types.CSETA2Z]...
void csetIdentifierNth(string propval) @propertySet `csetIdentifierNth` field. Params: propval = specifies the characters which can be used in identifiers, after the first character (the default is [glib.types.CSETa2z], "0123456789", [glib.types...
string cpairCommentSingle() @propertyGet `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) @propertySet `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() @propertyGet `caseSensitive` field. Returns: specifies if symbols are case sensitive (the default is false).
void caseSensitive(uint propval) @propertySet `caseSensitive` field. Params: propval = specifies if symbols are case sensitive (the default is false).
uint skipCommentMulti() @propertyGet `skipCommentMulti` field. Returns: specifies if multi-line comments are skipped and not returned as tokens (the default is true).
void skipCommentMulti(uint propval) @propertySet `skipCommentMulti` field. Params: propval = specifies if multi-line comments are skipped and not returned as tokens (the default is true).
uint skipCommentSingle() @propertyGet `skipCommentSingle` field. Returns: specifies if single-line comments are skipped and not returned as tokens (the default is true).
void skipCommentSingle(uint propval) @propertySet `skipCommentSingle` field. Params: propval = specifies if single-line comments are skipped and not returned as tokens (the default is true).
uint scanCommentMulti() @propertyGet `scanCommentMulti` field. Returns: specifies if multi-line comments are recognized (the default is true).
void scanCommentMulti(uint propval) @propertySet `scanCommentMulti` field. Params: propval = specifies if multi-line comments are recognized (the default is true).
uint scanIdentifier() @propertyGet `scanIdentifier` field. Returns: specifies if identifiers are recognized (the default is true).
void scanIdentifier(uint propval) @propertySet `scanIdentifier` field. Params: propval = specifies if identifiers are recognized (the default is true).
uint scanIdentifier1char() @propertyGet `scanIdentifier1char` field. Returns: specifies if single-character identifiers are recognized (the default is false).
void scanIdentifier1char(uint propval) @propertySet `scanIdentifier1char` field. Params: propval = specifies if single-character identifiers are recognized (the default is false).
uint scanIdentifierNULL() @propertyGet `scanIdentifierNULL` field. Returns: specifies if null is reported as `GTOKENIDENTIFIER_NULL` (the default is false).
void scanIdentifierNULL(uint propval) @propertySet `scanIdentifierNULL` field. Params: propval = specifies if null is reported as `GTOKENIDENTIFIER_NULL` (the default is false).
uint scanSymbols() @propertyGet `scanSymbols` field. Returns: specifies if symbols are recognized (the default is true).
void scanSymbols(uint propval) @propertySet `scanSymbols` field. Params: propval = specifies if symbols are recognized (the default is true).
uint scanBinary() @propertyGet `scanBinary` field. Returns: specifies if binary numbers are recognized (the default is false).
void scanBinary(uint propval) @propertySet `scanBinary` field. Params: propval = specifies if binary numbers are recognized (the default is false).
uint scanOctal() @propertyGet `scanOctal` field. Returns: specifies if octal numbers are recognized (the default is true).
void scanOctal(uint propval) @propertySet `scanOctal` field. Params: propval = specifies if octal numbers are recognized (the default is true).
uint scanFloat() @propertyGet `scanFloat` field. Returns: specifies if floating point numbers are recognized (the default is true).
void scanFloat(uint propval) @propertySet `scanFloat` field. Params: propval = specifies if floating point numbers are recognized (the default is true).
uint scanHex() @propertyGet `scanHex` field. Returns: specifies if hexadecimal numbers are recognized (the default is true).
void scanHex(uint propval) @propertySet `scanHex` field. Params: propval = specifies if hexadecimal numbers are recognized (the default is true).
uint scanHexDollar() @propertyGet `scanHexDollar` field. Returns: specifies if '$' is recognized as a prefix for hexadecimal numbers (the default is false).
void scanHexDollar(uint propval) @propertySet `scanHexDollar` field. Params: propval = specifies if '$' is recognized as a prefix for hexadecimal numbers (the default is false).
uint scanStringSq() @propertyGet `scanStringSq` field. Returns: specifies if strings can be enclosed in single quotes (the default is true).
void scanStringSq(uint propval) @propertySet `scanStringSq` field. Params: propval = specifies if strings can be enclosed in single quotes (the default is true).
uint scanStringDq() @propertyGet `scanStringDq` field. Returns: specifies if strings can be enclosed in double quotes (the default is true).
void scanStringDq(uint propval) @propertySet `scanStringDq` field. Params: propval = specifies if strings can be enclosed in double quotes (the default is true).
uint numbers2Int() @propertyGet `numbers2Int` field. Returns: specifies if binary, octal and hexadecimal numbers are reported as `GTOKENINT` (the default is true).
void numbers2Int(uint propval) @propertySet `numbers2Int` field. Params: propval = specifies if binary, octal and hexadecimal numbers are reported as `GTOKENINT` (the default is true).
uint int2Float() @propertyGet `int2Float` field. Returns: specifies if all numbers are reported as `GTOKENFLOAT` (the default is false).
void int2Float(uint propval) @propertySet `int2Float` field. Params: propval = specifies if all numbers are reported as `GTOKENFLOAT` (the default is false).
uint identifier2String() @propertyGet `identifier2String` field. Returns: specifies if identifiers are reported as strings (the default is false).
void identifier2String(uint propval) @propertySet `identifier2String` field. Params: propval = specifies if identifiers are reported as strings (the default is false).
uint char2Token() @propertyGet `char2Token` field. Returns: specifies if characters are reported by setting `token = ch` or as `GTOKENCHAR` (the default is true).
void char2Token(uint propval) @propertySet `char2Token` field. Params: propval = specifies if characters are reported by setting `token = ch` or as `GTOKENCHAR` (the default is true).
uint symbol2Token() @propertyGet `symbol2Token` field. Returns: specifies if symbols are reported by setting `token = vsymbol` or as `GTOKEN_SYMBOL` (the default is false).
void symbol2Token(uint propval) @propertySet `symbol2Token` field. Params: propval = specifies if symbols are reported by setting `token = vsymbol` or as `GTOKEN_SYMBOL` (the default is false).
uint scope0Fallback() @propertyGet `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) @propertySet `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() @propertyGet `storeInt64` field. Returns: use value.vint64 rather than vint
void storeInt64(uint propval) @propertySet `storeInt64` field. Params: propval = use value.vint64 rather than vint
Constructors
this(void * ptr, Flag!"Take" take)