Module Kwartz::CharacterType
In: kwartz/parser.rb

Methods

Public Instance methods

[Source]

# File kwartz/parser.rb, line 26
    def is_alpha(ch)
      return (?a <= ch && ch <= ?z) || (?A <= ch && ch <= ?Z)
    end

[Source]

# File kwartz/parser.rb, line 31
    def is_digit(ch)
      return ?0 <= ch && ch <= ?9
    end

[Source]

# File kwartz/parser.rb, line 36
    def is_identchar(ch)
      return is_alpha(ch) || is_digit(ch) || ch == ?_
    end

[Source]

# File kwartz/parser.rb, line 21
    def is_whitespace(ch)
      return ch == ?\  || ch == ?\t || ch == ?\n || ch == ?\r
    end

[Validate]