next up previous
Next: Aspect Declaration Up: LALR(1) Grammar Previous: LALR(1) Grammar

Extensions to the Java Grammar

The following five rules are already found in the Java grammar. The alternatives given below are additional alternatives to those rules. At the highest level (type_declaration), we add the possibility for declaring an aspect. Inside a class (class_member_declaration) and inside an interface (interface_member_declaration), we add the possibility of declaring an aspect or a pointcut. Finally, we add the special method call for proceed.


\begin{grammar}
\begin{blue}
<{\red type_declaration}> ::= <aspect_declaration>
...
...}> ::= 'proceed' '(' {\red <argument_list_opt>} ')'
\par
\end{blue}\end{grammar}



hendren 2004-09-02