Pegmatite::Pattern::Literal
Inherits Pegmatite::Pattern < Pegmatite::DSL::Methods < Reference < Object
Pattern::Literal is used to consume a specific string.
Parsing will fail if the bytes in the stream don't exactly match the string. Otherwise, the pattern succeeds, consuming the matched bytes.
Constructors
Instance methods
_match(source, offset, state) : MatchResult
Sourcedescription
Sourcedsl_name
Sourceinspect(io)
Source