instaparse

If you're not trampolining your parser, why bother getting up in the morning?
2015-07-22T11:20:04.000021Z

I’ve been noticing something with a new project using instaparse. It seems that everything I get out of the parser is wrapped in a list. I don’t recall having seen this behaviour before. Can someone enlighten me? :simple_smile:

2015-07-22T12:02:47.000022Z

After a couple of quick tests, it seems to be my particular grammar that causes this, but I'm not sure why.

aengelberg 2015-07-22T16:35:44.000023Z

@marcofiset: are you hiding the root tag (`<S> = ...`)? If so, this is by design as explained in this section of the readme: https://github.com/engelberg/instaparse#hiding-tags

2015-07-22T20:31:54.000025Z

You're right, that was it.

2015-07-22T20:32:33.000026Z

I decided not to ignore it instead, and introduced a hidden sub-expression which handles the recursivity.