Guest User

Untitled

a guest
May 20th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. class ClassVarDecNode : public AST{
  2. public:
  3. ClassVarDecNode(string staticOrFieldKeyword, string classVarType, AST* listVarNameNode, char semicolon, AST* classVarDecNode);
  4. ~ClassVarDecNode();
  5. void visit();
  6.  
  7. private:
  8. string staticOrFieldKeyword;
  9. string classVarType;
  10. AST* listVarNameNode;
  11. char semicolon;
  12. AST* classVarDecNode;
  13. };
  14.  
  15. ClassVarDecNode::ClassVarDecNode(string staticOrFieldKeyword, string classVarType, AST* listVarNameNode, char semicolon, AST* classVarDecNode):
  16. AST(),
  17. staticOrFieldKeyword( staticOrFieldKeyword ),
  18. classVarType( classVarType ),
  19. listVarNameNode( listVarNameNode ),
  20. semicolon( semicolon ),
  21. classVarDecNode( classVarDecNode )
  22. {}
  23.  
  24. $$ = new ClassVarDecNode("somestring", "somestring", someListNode, ';', NULLPOINTER);
  25.  
  26. terminate called after throwing an instance of 'std::logic_error'
  27. what(): basic_string::_M_construct null not valid
  28. Aborted
Add Comment
Please, Sign In to add comment