[antlr-interest] unexpected char: '''

Terence Parr parrt at cs.usfca.edu
Mon May 7 12:31:04 PDT 2007


On May 7, 2007, at 11:15 AM, Luke A. Guest wrote:

> Hi,
>
> I'm a newbie to antlr and am using 2.7.7. I'm attempting to just get a
> basic scanner for Ada 2005. At the moment, I'm just trying to get
> something very basic going, not using UCS/Unicode, just ASCII and I  
> just
> want to define a few delimeters for testing purposed.
>
> Implementation language is C++.
>
> If I remove the "MINUS" line from below, it compiles fine, cany anyone
> tell me what it wrong here?
>

> MINUS:        '–';

That looks like a non-ASCII minus, which ANTLR cannot handle directly.
Ter



More information about the antlr-interest mailing list