parsley icon indicating copy to clipboard operation
parsley copied to clipboard

Question: get options-map and rules back from created parser

Open clojj opened this issue 11 years ago • 0 comments

Hi,

Is it possible to get the original options(-map) and rules(-list) with which a parser was created ?

e.g. in your test.clj doing this (:net.cgrand.parsley/options (meta fexpr)) ...gives me the options-map

but then doing this (:main (:net.cgrand.parsley/options (meta fexpr))) ...only gives me ":expr*"

So, is there a way to get all of the original rules(-list) ? This way, a parser could be created with different options, but keeping the same grammar, or vice-versa or both changed..

Best, Joerg

clojj avatar Sep 09 '13 21:09 clojj