class

Pegmatite::Pattern::EOF

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

Pattern::EOF specifies that the end of the source must follow after the child pattern has been parsed successfully.

If the child pattern doesn't match, its result is returned. Fails if the cursor hasn't reached the end of the source. Otherwise, the result of the child pattern is returned.

Constructors

new(child : Pattern)
Source

Instance methods

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