Enhance genlex with pattern matching with multiple lexers