On Sat, Nov 19, 2005 at 02:08:58PM +0100, Leif Bladt wrote:
> So, keeping the list busy...
which is always a good idea ;)
> According to the list from Sun (http://java.sun.com/docs/books/
> tutorial/java/nutsandbolts/_keywords.html) in de.srcml.language.Java
> there are two keywords missing: assert and enum. I'm not sure, if it
> will result in now work in other parts of the framework (e.g. the
> Parser or View platform), so I didn't add them to the keyword list :)
Indeed. The keyword list was probably last changed during the initial
1.3 parser time. assert comes from 1.4 and enum from 1.5. Changing them
shouldn't cause anything to break, as the parser is using it's own list
of keywords - it can't really work together with the API, as the
semantic of those keywords is important to parsing too.
> Java (and I think other languages too) has reserved words (true,
> false, and null). Can we support these reserved words like the
> keywords with an is Reserved(String)? This would be an advantage to
> easily tag these words in the XHTML file as well.
Good idea. Hm... we could flag those elements which can have names with
an ISupportsName interface with the implementation checking against
keyords and reserved words then before setting the name attribute. But
that's something totally different again :)
I'll add those missing keywords and the reserved keywords right away. It
should be in CVS in about an hour.
--
Raiser, Frank
Student @ University of Ulm (www.uni-ulm.de)
I had to make some optimistic assumptions to meet the revenue target.
In week three, we're visited by an alien named D'utox Inag who offers
to share his advanced technology. (Scott Adams)
|