Summary: | declare and pointcut as identifiers cause parsing problems | ||
---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Wes Isberg <wes> |
Component: | Compiler | Assignee: | Jim Hugunin <jim-aj> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 1.1.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows NT | ||
Whiteboard: |
Description
Wes Isberg
2003-08-21 07:36:14 EDT
The AspectJ parser defined the following additional keywords: aspect pointcut around before after declare privileged The grammar tries to allow these names to be used in most places where a JavaIdentifier is allowed, but it's currently quite incomplete. Addressing this bug would make a great project for someone who's not scared of LR parser generators. The task is to try to fix the grammar (in shadows/org.eclipse.jdt.core/grammars/java_1_4.g) to allow the additional AspectJ keywords in the position of a JavaIdentifier as often as possible without producing parsing conflicts. Then the next task would be to clearly specify those few places where this isn't possible and the above terms need to be treated as reserved. Of course, anyone who started to get involved with the AspectJ grammar would hopefully be tempted to look at moving it to java_1_5.g as well looking toward the future. |