Hi, I've been using PLY to parse my little DSL and so force. I now need to parse an hybrid legacy language that can be a request message but also host a data message (and then it is can be big for a message around 20 MB). As I am familiar with the PLY lexer, I would like to use it to tokenize this message. However ply.lexer does only take a string as input and I would like to avoid load 20 MB in memory. Is there a way to have the PLY lexer reading from a stream or is there a way to make PLY believe that it is a string and behind the scene in reality it is an IO stream.
Thanks for the future help Cheers Guillaume --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ply-hack" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ply-hack?hl=en -~----------~----~----~----~------~----~------~--~---
