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
  • From: Jayaprakash Arthanareeswaran <jarthana@xxxxxxxxxx>
  • Date: Thu, 5 Jan 2023 09:46:36 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in.ibm.com; dmarc=pass action=none header.from=in.ibm.com; dkim=pass header.d=in.ibm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7gqIUKdO4bwbdaYl1l7b9C9gC59aXatxpZQ4fghoqOY=; b=X5MhqD9xiqwYeC+1jIlTy9ZfuIk9zLoLSrrFMAsOr4bVnFJkxVg5g0NLTs8vfkF0gFFhpTyyWnjzDO/glkTRSyoMsy1cGux6iXYP/XOGRTL+XAnKsihb8fVawae1FKLCAa9aLKHUtG4BfjtBCO7o/gORuRjY56WjtNCHR7JnllIENhjgiQTsjXPUKp5J5q0bgRd2+RyRcoq8gyPJS7655vNGCNiRzuz2puRt8tTMZR5Y2fSnt8I0Il7evPLdJ9aOZUqt8uJAZnPnOryZukLg72kSx3qODCbivMV2ebTmSvDxAOCgCnml2qM1bSLqNwqTqKFRnGE3LpUUIhA/fdPofw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LNw+anXtSn+ZRzgU4dkdYc4XYVC5Fy9bKp+DvYYCPHClqksnEtoW0VhI0GQeN+dLSCNzKcq8zGIsJXUH+QTIfQmwOvt/WTcrH+N5V9bgwwP8pnLyDHHvGye8eCd1MOwAoHj/r5/JX4dRWftMmCGV8EmWplMIfFdjWuPfmGySBqHigY4WwuLdM7HYtqBwxb3+kD0jqJLT0QxHnd6J3R50YYWhbBw2zfds2ZVyC5hp+dssztCHhPqARCSoQd9My2+cLSsVGD0lM2jG9qrCGddlJ+/ZXTmVo4ZExQVZvCZI84XpJ++8t160KdwCk7Ct1kWr3nsiCFNDH9pR66eLIGmwhA==
  • Delivered-to: jdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jdt-dev/>
  • List-help: <mailto:jdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jdt-dev>, <mailto:jdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jdt-dev>, <mailto:jdt-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHZHu2Bi27Lapj+CkegV4fQIibjsq6PenIAgAACAQCAABnAsA==
  • Thread-topic: [EXTERNAL] Re: [jdt-dev] Jikespg syntax description used in ...compiler.batch/grammar/java.g

This is something we rarely do. So, nobody bothered to do this. 
And as long as this being static, it doesn't help anyway.

About your question, I vaguely remember there being a difference
::= and ->. I and Manoj discussed this but I don't recall what the difference was.

Regards,
Jay

-----Original Message-----
From: jdt-dev <jdt-dev-bounces@xxxxxxxxxxx> On Behalf Of Alexander Kriegisch
Sent: 05 January 2023 13:40
To: jdt-dev@xxxxxxxxxxx
Subject: [EXTERNAL] 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.
_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jdt-dev


Back to the top