class

Pegmatite::Pattern::UnicodeRange

Inherits Pegmatite::Pattern < Pegmatite::DSL::Methods < Reference < Object

Pattern::UnicodeRange is used to consume a single character from within a specified contiguous range of acceptable codepoints.

Parsing will fail if a valid UTF-32 codepoint couldn't be parsed, or if the parsed codepoint didn't fall in the specified range. Otherwise, the pattern succeeds, consuming the matched bytes.

Constructors

new(min : UInt32, max : UInt32)
Source

Instance methods

_match(source, offset, state) : MatchResult
Source
description
Source
dsl_name
Source
inspect(io)
Source