Regular chars are all characters that are not identified as a symbol char in WordsDef. Special regular chars are regular characters used by Gobstones lexer to structure numbers and identifiers in a Gobstones program. This interface defines the basic, built-in special regular chars. It is given separately from the extra special regular chars, as its groups are not given by extension, but by extension, using functions.

It constitutes one of the elements of the WordsDef interface.

  • Digit chars are those that can appear in numbers. Numbers usually have additional structure, so some combinations of digit chars may result in invalid numbers during parsing.

  • Uppercase chars are the subset of regular characters identified as uppercase -- see WordsDef documentation for an explanation of casing and its importance in Gobstones.

  • Lowercase chars are the subset of regular characters identified as lowercase -- see WordsDef documentation for an explanation of casing and its importance in Gobstones. It is added for redundancy, as all characters that are not identified as Uppercase are considered lowercase...

interface BasicSpecialRegularChars {
    isDigitChar: ((ch) => boolean);
    isLowercaseChar: ((ch) => boolean);
    isUppercaseChar: ((ch) => boolean);
}

Properties

isDigitChar: ((ch) => boolean)

Type declaration

    • (ch): boolean
    • Parameters

      • ch: string

      Returns boolean

isLowercaseChar: ((ch) => boolean)

Type declaration

    • (ch): boolean
    • Parameters

      • ch: string

      Returns boolean

isUppercaseChar: ((ch) => boolean)

Type declaration

    • (ch): boolean
    • Parameters

      • ch: string

      Returns boolean