Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ClassVarDecNode : public AST{
- public:
- ClassVarDecNode(string staticOrFieldKeyword, string classVarType, AST* listVarNameNode, char semicolon, AST* classVarDecNode);
- ~ClassVarDecNode();
- void visit();
- private:
- string staticOrFieldKeyword;
- string classVarType;
- AST* listVarNameNode;
- char semicolon;
- AST* classVarDecNode;
- };
- ClassVarDecNode::ClassVarDecNode(string staticOrFieldKeyword, string classVarType, AST* listVarNameNode, char semicolon, AST* classVarDecNode):
- AST(),
- staticOrFieldKeyword( staticOrFieldKeyword ),
- classVarType( classVarType ),
- listVarNameNode( listVarNameNode ),
- semicolon( semicolon ),
- classVarDecNode( classVarDecNode )
- {}
- $$ = new ClassVarDecNode("somestring", "somestring", someListNode, ';', NULLPOINTER);
- terminate called after throwing an instance of 'std::logic_error'
- what(): basic_string::_M_construct null not valid
- Aborted
Add Comment
Please, Sign In to add comment