All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javacc-7.0.3.examples.JJTreeExamples.cpp.ASTMyOtherID.cc Maven / Gradle / Ivy

There is a newer version: 7.0.13
Show newest version
/*
 * 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@ */





© 2015 - 2024 Weber Informatics LLC | Privacy Policy