require "./parser.cr" module Parcom # `Flunk` is a `Parser` that always fails. class Flunk(T, V) < Parser(T, V) # Always raises `ParserFail` def parse(tokens) : Result(T, V) raise ParserFail.new("Flunk: parsing failed") end end end