This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Meeting Agenda 2008-08-27


This came up again in today's meeting:

Keith mention possible relations to lookup, and parsing bugs.

Example, foo::foo which is parsed as TYPE_NAME COLONCOLON TYPE_NAME


I have looked at this code before, my thoughts where to make the lexer slightly dumper.


ie the lexer will create tokens NAME COLONCOLON NAME, and not specify
that name is a TYPENAME or a symbol NAME. Then in the parser have a rule like this


QUALIFIED_TYPE = NAME COLONCOLON NAME
               | QUALIFIED_TYPE COLONCOLON NAME

The lexer doent have enough intelligence to request a lookup of foo within foo but the parser does. And neither need to distinguish type names from names in this context.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]