instaparse

If you're not trampolining your parser, why bother getting up in the morning?
2015-08-26T23:00:15.000003Z

I’m having a little trouble with a simple parser:

2015-08-26T23:00:19.000004Z

(def exp-parser (insta/parser "S = Sexp Sexp = Term | '(' Term* ')' Term = Char+ Char = #'[a-z]'"))

2015-08-26T23:01:10.000005Z

user=> (exp-parser "(hi)") [:S [:Sexp "(" [:Term [:Char "h"]] [:Term [:Char "i"]] ")"]] I thought the Char+ would make “hi” a single Term...