class

Pegmatite::Pattern::UnicodeChar

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

Pattern::UnicodeChar is used to consume a single specific character.

Parsing will fail if a valid UTF-32 codepoint couldn't be parsed, or if the parsed codepoint didn't match the expected one. Otherwise, the pattern succeeds, consuming the matched bytes.

Constructors

new(expected : UInt32)
Source

Instance methods

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