module Pegmatite
Defined in:
pegmatite.crpegmatite/dsl.cr
pegmatite/pattern/choice.cr
pegmatite/pattern/dynamic_match.cr
pegmatite/pattern/dynamic_pop.cr
pegmatite/pattern/dynamic_push.cr
pegmatite/pattern/eof.cr
pegmatite/pattern/forward.cr
pegmatite/pattern/label.cr
pegmatite/pattern/literal.cr
pegmatite/pattern/not.cr
pegmatite/pattern/optional.cr
pegmatite/pattern/repeat.cr
pegmatite/pattern/sequence.cr
pegmatite/pattern/unicode_any.cr
pegmatite/pattern/unicode_char.cr
pegmatite/pattern/unicode_range.cr
pegmatite/token.cr
Constant Summary
-
VERSION =
"0.1.0"
Class Method Summary
-
.tokenize(pattern : Pattern, source : String, offset = 0, io : IO | Nil = nil) : Array(Token)
Return the array of tokens resulting from executing the given pattern grammar over the given source string, starting from the given offset.
Class Method Detail
def self.tokenize(pattern : Pattern, source : String, offset = 0, io : IO | Nil = nil) : Array(Token)
#
Return the array of tokens resulting from executing the given pattern grammar over the given source string, starting from the given offset. If an IO is passed, print traces of all parsing activity. Raises a Pattern::MatchError if parsing fails.