I need to parse a string using javacc containing single quotes as part of the string
<p>I have defined grammar rules like</p>

<pre><code>TOKEN : { &lt; SINGLE_QUOTE : " ' " &gt; }

TOKEN : {  &lt; STRING_LITERAL : " ' "  (~["\n","\r"])*  " ' "&gt;
</code></pre>

<p>But I am not able to parse sequences like   're'd' .I need the parser to parse re'd as a string literal.But the parser parses 're' seperately and 'd' seperately for these rules.</p>