1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
/*
* ASTMyOtherID.cpp
*
* Created on: 27 mars 2014
* Author: FrancisANDRE
*/
#include "ASTMyOtherID.h"
#include "ParserVisitor.h"
namespace @NAMESPACE@ {
ASTMyOtherID::ASTMyOtherID(int id) : SimpleNode(id) {
}
ASTMyOtherID::ASTMyOtherID(Parser *p, int id) : SimpleNode(p, id){
}
ASTMyOtherID::~ASTMyOtherID() {
}
void
ASTMyOtherID::setName(JAVACC_STRING_TYPE image) {
name = image;
}
JAVACC_STRING_TYPE
ASTMyOtherID::toString() const {
return "Identifier: " + name;
}
/** Accept the visitor. **/
void*
ASTMyOtherID::jjtAccept(ParserVisitor *visitor, void * data) const {
return visitor->visit(this, data);
}
} /* namespace @NAMESPACE@ */
|