ScannerConfig

class ScannerConfig(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null) : ProxyInstance

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.

Constructors

Link copied to clipboard
constructor()

Allocate a new ScannerConfig.

constructor(scope: <Error class: unknown class>)

Allocate a new ScannerConfig using the provided AutofreeScope.

constructor(csetSkipCharacters: String?, csetIdentifierFirst: String?, csetIdentifierNth: String?, cpairCommentSingle: String?, caseSensitive: <Error class: unknown class>, skipCommentMulti: <Error class: unknown class>, skipCommentSingle: <Error class: unknown class>, scanCommentMulti: <Error class: unknown class>, scanIdentifier: <Error class: unknown class>, scanIdentifier1char: <Error class: unknown class>, scanIdentifierNull: <Error class: unknown class>, scanSymbols: <Error class: unknown class>, scanBinary: <Error class: unknown class>, scanOctal: <Error class: unknown class>, scanFloat: <Error class: unknown class>, scanHex: <Error class: unknown class>, scanHexDollar: <Error class: unknown class>, scanStringSq: <Error class: unknown class>, scanStringDq: <Error class: unknown class>, numbers2Int: <Error class: unknown class>, int2Float: <Error class: unknown class>, identifier2String: <Error class: unknown class>, char2Token: <Error class: unknown class>, symbol2Token: <Error class: unknown class>, scope0Fallback: <Error class: unknown class>, storeInt64: <Error class: unknown class>)

Allocate a new ScannerConfig.

constructor(csetSkipCharacters: String?, csetIdentifierFirst: String?, csetIdentifierNth: String?, cpairCommentSingle: String?, caseSensitive: <Error class: unknown class>, skipCommentMulti: <Error class: unknown class>, skipCommentSingle: <Error class: unknown class>, scanCommentMulti: <Error class: unknown class>, scanIdentifier: <Error class: unknown class>, scanIdentifier1char: <Error class: unknown class>, scanIdentifierNull: <Error class: unknown class>, scanSymbols: <Error class: unknown class>, scanBinary: <Error class: unknown class>, scanOctal: <Error class: unknown class>, scanFloat: <Error class: unknown class>, scanHex: <Error class: unknown class>, scanHexDollar: <Error class: unknown class>, scanStringSq: <Error class: unknown class>, scanStringDq: <Error class: unknown class>, numbers2Int: <Error class: unknown class>, int2Float: <Error class: unknown class>, identifier2String: <Error class: unknown class>, char2Token: <Error class: unknown class>, symbol2Token: <Error class: unknown class>, scope0Fallback: <Error class: unknown class>, storeInt64: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new ScannerConfig using the provided AutofreeScope.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Properties

Link copied to clipboard
var caseSensitive: <Error class: unknown class>

specifies if symbols are case sensitive (the default is false).

Link copied to clipboard
var char2Token: <Error class: unknown class>

specifies if characters are reported by setting token = ch or as %G_TOKEN_CHAR (the default is true).

Link copied to clipboard

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).

Link copied to clipboard

specifies the characters which can start identifiers (the default is %G_CSET_a_2_z, "_", and %G_CSET_A_2_Z).

Link copied to clipboard

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).

Link copied to clipboard

specifies which characters should be skipped by the scanner (the default is the whitespace characters: space, tab, carriage-return and line-feed).

Link copied to clipboard
val glibScannerConfigPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val handle: <Error class: unknown class>?
Link copied to clipboard
var identifier2String: <Error class: unknown class>

specifies if identifiers are reported as strings (the default is false).

Link copied to clipboard
var int2Float: <Error class: unknown class>

specifies if all numbers are reported as %G_TOKEN_FLOAT (the default is false).

Link copied to clipboard
var numbers2Int: <Error class: unknown class>

specifies if binary, octal and hexadecimal numbers are reported as %G_TOKEN_INT (the default is true).

Link copied to clipboard
var scanBinary: <Error class: unknown class>

specifies if binary numbers are recognized (the default is false).

Link copied to clipboard
var scanCommentMulti: <Error class: unknown class>

specifies if multi-line comments are recognized (the default is true).

Link copied to clipboard
var scanFloat: <Error class: unknown class>

specifies if floating point numbers are recognized (the default is true).

Link copied to clipboard
var scanHex: <Error class: unknown class>

specifies if hexadecimal numbers are recognized (the default is true).

Link copied to clipboard
var scanHexDollar: <Error class: unknown class>

specifies if '$' is recognized as a prefix for hexadecimal numbers (the default is false).

Link copied to clipboard
var scanIdentifier: <Error class: unknown class>

specifies if identifiers are recognized (the default is true).

Link copied to clipboard
var scanIdentifier1char: <Error class: unknown class>

specifies if single-character identifiers are recognized (the default is false).

Link copied to clipboard
var scanIdentifierNull: <Error class: unknown class>

specifies if null is reported as %G_TOKEN_IDENTIFIER_NULL (the default is false).

Link copied to clipboard
var scanOctal: <Error class: unknown class>

specifies if octal numbers are recognized (the default is true).

Link copied to clipboard
var scanStringDq: <Error class: unknown class>

specifies if strings can be enclosed in double quotes (the default is true).

Link copied to clipboard
var scanStringSq: <Error class: unknown class>

specifies if strings can be enclosed in single quotes (the default is true).

Link copied to clipboard
var scanSymbols: <Error class: unknown class>

specifies if symbols are recognized (the default is true).

Link copied to clipboard
var scope0Fallback: <Error class: unknown class>

specifies if a symbol is searched for in the default scope in addition to the current scope (the default is false).

Link copied to clipboard
var skipCommentMulti: <Error class: unknown class>

specifies if multi-line comments are skipped and not returned as tokens (the default is true).

Link copied to clipboard
var skipCommentSingle: <Error class: unknown class>

specifies if single-line comments are skipped and not returned as tokens (the default is true).

Link copied to clipboard
var storeInt64: <Error class: unknown class>

use value.v_int64 rather than v_int

Link copied to clipboard
var symbol2Token: <Error class: unknown class>

specifies if symbols are reported by setting token = v_symbol or as %G_TOKEN_SYMBOL (the default is false).

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compare two proxy instances for equality. This will compare both the type of the instances, and their memory addresses.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String