'whatever' has no declared type

Posted by mihirpmehta on Stack Overflow See other posts from Stack Overflow or by mihirpmehta
Published on 2010-03-22T17:55:22Z Indexed on 2010/03/22 18:01 UTC
Read the original article Hit count: 353

Filed under:
|
|

i am developing parser using bison...in my grammar i am getting this error

Here is a code

extern NodePtr  CreateNode(NodeType, ...);
extern NodePtr  ReplaceNode(NodeType, NodePtr); 
extern NodePtr  MergeSubTrees(NodeType, ...); 


            ...................


NodePtr   rootNodePtr = NULL; /* pointer to the root of the parse tree */
NodePtr   nodePtr = NULL; /* pointer to an error node */


                         ...........................

NodePtr   mainMethodDecNodePtr = NULL;

                   ................

/* YYSTYPE */

%union {
 NodePtr nodePtr;
}

i am getting this error whenever i use like $$.nodePtr or $1.nodePtr ... I am getting Parser.y:1302.32-33: $1 of `Expressi on' has no declared type

© Stack Overflow or respective owner

Related posts about bison

Related posts about parser