Gjsify LogoGjsify Logo

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.

record

Hierarchy

  • ScannerConfig

Index

Constructors

Properties

case_sensitive: number

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

field
char_2_token: number

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

field
cpair_comment_single: string

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

field
cset_identifier_first: string

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

field
cset_identifier_nth: string

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

field
cset_skip_characters: string

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

field
identifier_2_string: number

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

field
int_2_float: number

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

field
numbers_2_int: number

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

field
scan_binary: number

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

field
scan_comment_multi: number

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

field
scan_float: number

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

field
scan_hex: number

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

field
scan_hex_dollar: number

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

field
scan_identifier: number

specifies if identifiers are recognized (the default is %TRUE).

field
scan_identifier_1char: number

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

field
scan_identifier_NULL: number

specifies if %NULL is reported as %G_TOKEN_IDENTIFIER_NULL (the default is %FALSE).

field
scan_octal: number

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

field
scan_string_dq: number

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

field
scan_string_sq: number

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

field
scan_symbols: number

specifies if symbols are recognized (the default is %TRUE).

field
scope_0_fallback: number

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

field
skip_comment_multi: number

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

field
skip_comment_single: number

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

field
store_int64: number

use value.v_int64 rather than v_int

field
symbol_2_token: number

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

field
name: string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method