[antlr-interest] Re: How to get difference set between two sets?
Terence Parr
parrt at jguru.com
Fri Apr 12 12:07:47 PDT 2002
On Friday, April 12, 2002, at 10:49 AM, yhhf_dy wrote:
> Thank for your response!
>
> Maybe I didn't describ my question clear last time. my question is
> there are two sets - identifier set and keyword set. keyword set is
> subset of identifier. I want to get the difference set between
> identifier and keyword, that is, get identifier but not include
> keyword. Is it possible to do that in antlr?
That's a hashtable isn't it? You should be able to get the literals
table (array or string) from the lexer object; it must also build a
hashtable from that.
> I'm going to develop a VB 6 parser. Now I have established vb grammar
> file of anltr based on VB .NET grammar
> (http://msdn.microsoft.com/library/en-
> us/vbls7/html/vblrfvbspec12.asp.) When I compile grammar file there
> are lots of nondeterminism warning. I hope I can overcome those
> problem, right now I knew that it was a hard work to generate VB
> parser.
Ter
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list