/warp

A general purpose parser for Clojure(Script)

Primary LanguageClojureGNU General Public License v3.0GPL-3.0

[cork.warp]

(def names #{"alex" "brian" "chris"})
(def actions #{"eats" "cooks" "devours"})
(def foods #{"ramen" "pizza" "sushi"})
(def statment [(token names) (token actions) (token foods)])
(parse statement "alex devourspizza") ;; -> ["alex" "devours" "pizza"]