I suggest adding a way to provide a custom precedence for the token regexs. I'm currently stuck because as far as I can tell, there isn't one.
Currently, it always sorts by the first line number of the function, which is nice if you're defining the functions manually, but a huge pain if you're defining the rules programmatically. Since foo.__code__.co_firstlineno is a readonly attribute, there is no way at all to specify the regex precedence. Providing explicit methods rather than relying on function internals might also make the code more portable. -- You received this message because you are subscribed to the Google Groups "ply-hack" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/ply-hack/-/xTOWYIECl4oJ. For more options, visit https://groups.google.com/groups/opt_out.
