Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] Jikespg syntax description used in ...compiler.batch/grammar/java.g

I also forgot to ask what the rationale behind making the DEBUG field
final is? The compiler optimising the 'if (DEBUG)' statements? While
trying to solve my issue, it would have bveen nice to be able to set the
flag dynamically instead of having to recompile JDT Core.

--
Alexander Kriegisch
https://scrum-master.de

Alexander Kriegisch schrieb am 05.01.2023 um 09:03:

> BTW, the way I was able to debug this was to set Parser.DEBUG to true
> and compile a JDT Core version with it, running my regression test
> against it, watching what was actually being parsed. Is there a more
> elegant way to debug grammar problems? And is there an IntelliJ or
> Eclipse plugin helping me to highlight the syntax of and navigate or
> even code-complete stuff in files like java.g? Especially the navigation
> part was difficult, repeatedly jumping around by searching for
> production names. Please also note that the AspectJ grammar is more
> complex than the plain Java grammar, the latter being just a subset of
> the former.


Back to the top