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

caseSensitive: number

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

field
char2Token: number

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

field
cpairCommentSingle: 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
csetIdentifierFirst: string

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

field
csetIdentifierNth: 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
csetSkipCharacters: string

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

field
identifier2String: number

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

field
int2Float: number

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

field
numbers2Int: number

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

field
scanBinary: number

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

field
scanCommentMulti: number

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

field
scanFloat: number

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

field
scanHex: number

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

field
scanHexDollar: number

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

field
scanIdentifier: number

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

field
scanIdentifier1char: number

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

field
scanIdentifierNULL: number

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

field
scanOctal: number

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

field
scanStringDq: number

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

field
scanStringSq: number

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

field
scanSymbols: number

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

field
scope0Fallback: number

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

field
skipCommentMulti: number

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

field
skipCommentSingle: number

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

field
storeInt64: number

use value.v_int64 rather than v_int

field
symbol2Token: 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