parsley
parsley copied to clipboard
Question: get options-map and rules back from created parser
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