This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

parse.y question


        Hello,

Here are several  partial nonterminals and productions from gcj parse.y:



class_declaration:
    CLASS_TK identifier super interfaces
      {    create_class (0, $2, $3, $4); }
     class_body

where

 identifier:
     ID_TK        ;

I'f I'm correct, ID_TK is returned after the latter production is
reduced. It means that $2 in create_class is ID_TK, but the method
itself requires second parameter to be of type tree of class "e" but not
of class "x" (identifier_node).  Could you explain what I'm missing and
where $2 becomes a tree?
Thanks.
        Sergiy Zhenochin.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]