From e5f9a9bbe65cc06b435e391552d7c4a6484bbd09 Mon Sep 17 00:00:00 2001 From: Efi Date: Tue, 4 Aug 2020 20:25:27 +0200 Subject: [PATCH] fix use before declaration --- src/clj_parser/core.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/clj_parser/core.clj b/src/clj_parser/core.clj index 810cc42..327ac8a 100644 --- a/src/clj_parser/core.clj +++ b/src/clj_parser/core.clj @@ -59,15 +59,15 @@ (defn parse-char [ch] (satisfy #(= % ch))) +(def identity-parser + (fn [s] + ["" s])) + (defn parse-word [word] (reduce (fn [parser ch] (<=> parser (parse-char ch))) identity-parser word)) -(def identity-parser - (fn [s] - ["" s])) - (defn optional-value [val] (fn [s] [val s]))