next up previous
Next: Nested Lexical Scopes Up: The abc scanner and Previous: Introduction


Lexical Structure

The lexical analysis of AspectJ is complicated by the fact that there are really three different languages being parsed: (1) normal Java code, (2)aspect declarations, and (3) pointcut definitions. Each of these three sub-languages has its own lexical structure, and it simplifies the subsequent design of the grammar if the scanner has different states and rules for each sub-grammar.



Subsections

hendren 2004-09-02