[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Actions for Javas class_declaration
From: |
Andreas Leppert |
Subject: |
Actions for Javas class_declaration |
Date: |
Thu, 20 Nov 2008 09:05:26 +0100 |
User-agent: |
Mutt/1.5.16 (2007-06-09) |
Hello,
I've seen this which stands for a Java Class Declaration:
class_declaration:
modifiers CLASS_TK identifier super interfaces
{ create_class ($1, $3, $4, $5); }
class_body
{;}
| CLASS_TK identifier super interfaces
{ create_class (0, $2, $3, $4); }
class_body
{;}
...
I have problems to understand the semantic action {;}. Does it mean "do
nothing" ? Why just not leave it blank?
Furthermore, I would have expected something like this:
modifiers CLASS_TK identifier super interfaces class_body
{ create_class ($1, $3, $4, $5, $6); }
I mean the body of a class should be attached to the class declaration,
shouldn't it?
Thanks for the help!
Andreas Leppert
- Actions for Javas class_declaration,
Andreas Leppert <=