Fork me on GitHub
#instaparse
<
2015-07-22
>
marcofiset11:07:04

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

marcofiset12:07:47

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

aengelberg16:07:44

@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

marcofiset20:07:54

You're right, that was it.

marcofiset20:07:33

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