Hi all, I am trying to parse some java source file that contain the definition of an interface, what I need is to get the name of the interface, what methods it defines and what other interfaces it extend.
I used a regex (there is any clever way other than analyze the source ?) that works pretty good, however it doesn't works all the time. If I copy and paste the source test from the file to the repl it works without any problem, however if I slurp the file it works only on some files, not on every file. What can be the problem ? (defn is-interface? [str] (re-matches #"(.|\n)* interface (\w+) (.|\n|\{)*" str)) is the regex I am using. This: https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/ISeq.java is a source that does NOT work. This other: https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/ILookup.java is a source that DOES work. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.