just looking at your code, you have an Eos() at the end of value. that means
that the input must end after the value, while you have a "}".
there may be other problems, but that certainly won't help.
On Thu, Nov 10, 2011 at 09:57:58PM -0800, Greg Bowyer wrote:
> Hi all
> My parser is as follows
> _bool = (Literal('true') | Literal('false')) >> bool
> _float = Real() >> float
> _int = Integer() >> int
> _string = (AnyBut(Whitespace()))[...] >> unquote_plus
> value = (_float | _int | _bool | _string) & Eos()
> pair = Word() & Drop('=') & value > tuple
> d = Drop('{') & pair & Drop('}') > dict
> I cant figure out why d.parse('{test1=test2}') fails what am I
> missing ?
> --
> You received this message because you are subscribed to the Google Groups "lepl" group.
> To post to this group, send email to lepl@googlegroups.com.
> To unsubscribe from this group, send email to lepl+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/lepl?hl=en.