Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to Modify the Eclipse Java Compiler/Grammar java.g. has any introducts the grammar of .g file?(java.g grammar)
How to Modify the Eclipse Java Compiler/Grammar java.g. has any introducts the grammar of .g file? [message #662821] Fri, 01 April 2011 06:08 Go to next message
liaobo  is currently offline liaobo Friend
Messages: 1
Registered: April 2011
Junior Member
How to Modify the Eclipse Java Compiler/Grammar java.g.
l don't know the means of tag in the .g file,
such as the means of "->" in "Literal -> BooleanLiteral"?
and the means of '$empty',and so on .
has any introduct the grammar of .g file?

[Updated on: Fri, 01 April 2011 09:20]

Report message to a moderator

Re: How to Modify the Eclipse Java Compiler/Grammar java.g. has any introducts the grammar of .g f [message #664576 is a reply to message #662821] Mon, 11 April 2011 09:24 Go to previous message
Srikanth Sankaran is currently offline Srikanth SankaranFriend
Messages: 5
Registered: July 2009
Junior Member
You need to be aware of the concept of and the
typical syntax used for context free grammars.
Literal -> BooleanLiteral means that one way to
compose/derive a Literal is to have composed/derived
a BooleanLiteral which itself is a non terminal defined
in terms of the terminal symbols true and false.
$empty means precisely that, i.e the non terminal
can be composed of empty input. e,g
ClassHeaderExtendsopt ::= $empty
means a class header's extends clause may be empty.

Any good compiler text would explain the terms
context free grammar, non terminals, terminals,
products, derivations etc.

You will also need the information from:
http://www.eclipse.org/jdt/core/howto/generate%20parser/gene rateParser.html

The source forge project for Jikes parser generator
may have some useful information for you also.


This could also be useful: http://jikes.sourceforge.net/documents/

Unfortunately I don't know of a single resource that
will answer all your questions regarding the syntax
of this file, You will have to piece together from the
variety of sources I mentioned.
Previous Topic:Generate comments programmatically
Next Topic:Boxing Compiler Warnings
Goto Forum:
  


Current Time: Thu Apr 25 03:36:33 GMT 2024

Powered by FUDForum. Page generated in 0.05179 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top