aboutsummaryrefslogtreecommitdiff
path: root/src/parcom.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/parcom.cr')
-rw-r--r--src/parcom.cr13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/parcom.cr b/src/parcom.cr
index 44a770c..aa7abba 100644
--- a/src/parcom.cr
+++ b/src/parcom.cr
@@ -81,19 +81,6 @@ module Parcom
end
end
- class Map(T, V, U) < Parser(T, U)
- def initialize(@p : Parser(T, V), &block : V -> U)
- @f = block
- end
-
- def parse(tokens : Tokens(T)) : Result(T, U)
- result = @p.parse(tokens)
- Result.new(result.tokens, @f.call(result.value))
- rescue ex : ParserFail
- raise ParserFail.new("Map: #{ex.message}")
- end
- end
-
class Phrase(T, V)
@p : Map(T, {V, Nil}, V)