Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] AspectJ BNF grammar?

I wasn't able to find that source file in the ajdt or aspectj plugin sources
for eclipse.  I don't know where to find the jdt patch source distribution.
But that's OK because I was really only wanted that as a basis to build my
own parser, which I've done.  It's implemented with JavaCC and I think it
should accept all valid AspectJ programs, with a few limitations as detailed
in the README.  If this is of use to anyone, feel free to download it; it is
licensed under the GPL.

The README is at:
http://rura.org/shimon/study/thesis/download/README.parser

The source and binary distro is at:
http://rura.org/shimon/study/thesis/download/AspectJParser.tar.gz

Let me know if you have any questions.

shimon.

On Sun, Jan 26, 2003 at 11:30:18AM -0800, Wes Isberg wrote:
> Jim might have more to say, but following is a copy of 
> his response to "Grammar for AspectJ 1.1" from 
> the old email archives.
> 
> Wes
> 
> -------
> The grammar source is in the eclipse jdt patch source 
> distribution under   org/eclipse/jdt/internal/compiler/parser/aj_grammar.txt
> 
> The AspectJ parts of this grammar are unusual in a number 
> of ways in order to maximize compatibility with the existing 
> Java grammar.  This should not be considered a grammar 
> specification, but rather an implementation of the grammar 
> within the constraints of the jikespg parser generator tool.
> 
> -Jim
> -------
> 
> Shimon Rura wrote:
> > 
> > Does anyone have a BNF grammar for AspectJ, or an AspectJ grammar used as
> > input for any kind of parser generator?  (Perhaps something used in the
> > compiler?)  It would be very helpful for an analysis project I'm working on.
> > 
> > Thank you,
> > Shimon Rura
> > _______________________________________________
> > aspectj-users mailing list
> > aspectj-users@xxxxxxxxxxx
> > http://dev.eclipse.org/mailman/listinfo/aspectj-users
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top