Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] Parser

Hi,

> After much ado, I decided to start of with simple test; I changed the  
> terminal symbol for into foo
I assume you did the change in the $Terminals section as well as in individual rules?
> and then followed the steps for generating the parser.
OK, so Parser.java et al incl. a bunch of resource files should be updated.
But what about Scanner.java? To the best of my knowledge their is no tool
for automatically updating the Scanner, right?
So you probably need to adjust manually:
- go to scanIdentifierOrKeyword()
- find case 'f'
you'll see what is needed here..

 
> Then I build jdt.core and exported the plugin into the plugins folder;
> 
> To my chagrin, Eclipse continued to recognize "for" and not "foo."  
The JDTUI will of course not know about your changes, but the compiler should.

Hope this helps
Stephan



Back to the top