instaparse

If you're not trampolining your parser, why bother getting up in the morning?
fabrao 2017-06-21T04:02:29.860414Z

Hello all, how can I make something like

(def parser
  (insta/parser "regra = <'filtro'> <ws> elemento+
                elemento = operador <ws> operando
                operador = ('origem')
                operando = #'[a-zA-Z0-9\\-]([0-9a-zA-Z\\-]*)'
                ws = #'\\s+'"))
(parser "filtro 
        origem 001-ARTICO 
        origem 011-BALDACCI")

what´s wrong?

2017-06-21T11:11:33.584876Z

@fabrao looks like the grammar doesn't allow whitespace in between elementos

aengelberg 2017-06-21T20:45:31.746659Z

^