Re: Trying to make a recursive parser, puzzling over certain behavior

2009-02-07 Thread James Reeves
On Feb 7, 11:43 pm, samppi wrote: > I never did figure out exactly why the behavior above occurred, but I > found a solution for my problem at > http://groups.google.com/group/clojure/browse_thread/thread/8c78b9934 Yep, if you want to refer to a var that hasn't been defined, wrap your rule

Re: Trying to make a recursive parser, puzzling over certain behavior

2009-02-07 Thread samppi
Oh, cool. That's a lot like my fnparse library: http://github.com/joshua-choi/fnparse/. I never did figure out exactly why the behavior above occurred, but I found a solution for my problem at http://groups.google.com/group/clojure/browse_thread/thread/8c78b993402638a1. On Feb 7, 6:19 am, James

Re: Trying to make a recursive parser, puzzling over certain behavior

2009-02-07 Thread James Reeves
On Feb 5, 6:03 am, samppi wrote: > user=> ((array) (seq "[0,0]")) ; This works as intended: > [[\[ \0 \, \0 \]] nil] > user=> (value (seq "[0,3]")) ; This should return nil, but a weird > argument exception is raised instead: > java.lang.IllegalArgumentException: Key must be integer > (NO_SOURCE_