Ignore ambiguity warning in ML_COMMENT. It works OK
This is how they do it on the web, really. It works as expected and matches any flavor of newline (Win, Unix, Mac) despite the ambiguity that "\n\r" can be matched by two subrules, in the end it will be properly matched just by one rule. Also, grammar can be k=2 for lexer.
Please register or sign in to comment