I’ve been trying out fnparse library written by Joshua Choi in Clojure and I’m having difficulties trying to work out how to call the rules on the text that I want to parse. I’ve been experimenting with cat which is part of the new release. Lets take the example code listed. Could anyone give me some ideas how I could call the rule on an expression?
Thank you!
thanks for trying out FnParse 3.
In general, you use the
edu.arizona.fnparse/matchform (as well as the complementaryfind,substitute, andsubstitute-1forms) to use the rules that you create. Check their documentation strings.Sorry about the confusion—I should have added an example of
matchinmath.clj—but take a look at the bottom of the sample Clojure parser. Even though the Clojure parser uses FnParse Hound,matchworks the same way in both Cat and Hound.