[antlr-interest] One question about MismatchedSetException

Hub Dog hubdog at gmail.com
Sat Sep 1 09:05:48 PDT 2007


Thanks for your reply, by the way one another request, it is possible to add
some comment to
generated Bitset constructor source like antlr2 , you know it is very
difficult to extract token information from a long number array.

for example
const unsigned long SqliteParser::_tokenSet_44_data_[] = { 1073741824UL,
1342963913UL, 2355430344UL, 1728054066UL, 29360129UL, 3257926657UL,
200540416UL, 872419712UL, 12288UL, 16UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL,
0UL, 0UL, 0UL };
// "abort" "after" "analyze" "asc" "attach" "before" "begin" "cascade"
// "cast" "conflict" "cross" "current_date" "current_time"
"current_timestamp"
// "database" "deferred" "desc" "detach" "end" "each" "exclusive" "explain"
// "fail" "for" "full" "glob" "if" "ignore" "immediate" "initially" "inner"
// "instead" "key" "left" "like" "match" "natural" "of" "offset" "outer"
// "plan" "pragma" "query" "raise" "regexp" "reindex" "rename" "replace"
// "restrict" "right" "row" "temp" "temporary" "trigger" "vacuum" "view"
// "virtual" ID STRING LP
const BitSet SqliteParser::_tokenSet_44(_tokenSet_44_data_,20);

best regards
ma lifang

On 9/2/07, Terence Parr <parrt at cs.usfca.edu> wrote:
>
>
> On Sep 1, 2007, at 8:16 AM, Hub Dog wrote:
>
> > Dear friends.
> >
> >           I just found a problem in source generated by antlr 3 .
> > Antlr 3 generates MismatchedSetException construtor source as
> > following
> > style:
> >          mse =   new MismatchedSetException(null,input);
> >  The expecting bitset parameter passed to MismatchedSetException
> > constructor was always null. That means I can not get error message
> > from expecting bitset. In antlr2  I can get error message such as
> > "expecting one of ('a', 'b', ....), found 'd'", but now I can only
> > get error message such as "mismatched input abc expecting set null".
> >
> >        Is the MismatchedSetException constructor part still under
> > development or I missed something?
> >
>
> Hi. known issue. I think i have a bug logged already. sorry.
> Ter
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070902/c726e008/attachment.html 


More information about the antlr-interest mailing list