In Parse::RecDescent, how do I effectively ignore C++/Java style comments? This includes single-line (‘//’ until the end of the line) and multi-line (/everything between here/).
In Parse::RecDescent, how do I effectively ignore C++/Java style comments? This includes single-line (‘//’
Share
<skip>defines what the parser considers whitespace.Unlike Nate Glenn’s solution, mine
Note:
(?:(?!STRING).)*is to(?:STRING)as[^CHAR]is toCHAR.