[antlr-interest] Is a bug if multiple groups comments

向秦贤 fyaoxy at gmail.com
Wed Aug 15 04:33:54 PDT 2007


Hi, given this grammar piece:
begin
/*******************************************
* keywords refine
********************************************/
//keySTRING:{input.LT(1).getText().equals("string");}WORD;

/*******************************************
* all lexer rulers
********************************************/
end;

antlr report "unexpected token ....
/*******************************************
* all lexer rulers
********************************************/
"
is this a bug?
I think it is acceptable to allow this style.

-- 
致敬
向秦贤


More information about the antlr-interest mailing list