>>> stuff.parse ('0 [1 2 3]\n')
Out[3]: [[0, [1, 2, 3]]]
I wanted [0, [1,2,3]]. I don't want/understand why I have an extra level of
list.
It's needed because internally there always has to be something to hold
results together. If you hadn't added an extra list on the outside of
everything, what would have wanted returned? Lepl can't return "0, [1,2,3]"
so it has to have a list itself. Then you added another!
I feel your pain - I did chase this around at one point, but I couldn't find
anything simpler. If I start adding special cases then it gets confusing when
matchers are combined, etc.
Cheers,
Andrew
> --
> You received this message because you are subscribed to the Google Groups "lepl" group.
> To post to this group, send email to le...@googlegroups.com.
> To unsubscribe from this group, send email to lepl+uns...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/lepl?hl=en.
>
That FAQ entry is one of the most useful pieces of documentation since
it explains about how LEPL deals with lists of results and because
how ">" and ">>" are so crucial and core to LEPL.
LEPL already puts results in lists, so the "> list" is already extraneous.
Ooops. Sorry about that - replied to wrong email. Andrew