I'm not sure whether ANTLR is more efficient than regular expressions, but it surely is more readable and moving everything to ANTLR will make the codebase more uniform.
Also it makes it easier to memoize the parsing.
While the query syntax is not a part of CSS, we could consider moving that to ANTLR as well.
I'm not sure whether ANTLR is more efficient than regular expressions, but it surely is more readable and moving everything to ANTLR will make the codebase more uniform.
Also it makes it easier to memoize the parsing.
While the query syntax is not a part of CSS, we could consider moving that to ANTLR as well.