Hello. I'm new to using python's LEPL, and it looks great. However, I'm trying to use the LineAwareConfiguration to easily handle a grammar in which whitespace matters, and I'm running into some serious issues. Namely, this code works:
from lepl import *
broken = Token(r'.')
parser = broken[:].string_parser()
While this code yields a UnicodeEncodeError:
from lepl import *
broken = Token(r'.')
parser = broken[:].string_parser(LineAwareConfiguration())
I've tried debugging on my own, and the code is way too complex for me to understand what is going on. Does anyone know LEPL well enough to tell me why this isn't working? LineAwareConfiguration seems pretty broken in this case, and it's not exactly a corner case.
It should be noted that other tokens (such as Token(r'[^a]')) also throw the unicode error, not just one with r'.'.
Can anyone help?