[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Archie Cobbs wrote:
> Then I still have a problem.. here's what I'm doing to parse doubly
> quoted strings:
> [ grammar snippet ]
> The problem is that string_start is a "fixed text" token in the
> grammar, but in reality is used to represent the entire string.
> I was following the example on page 39.
An easy fix would be to fool SableCC to think that your fixed text token
has variable text.
this_is_fixed = 'hello' | 'hello';
Here, SableCC will think that there are many possibilities.