javacc-7.0.3.examples.JJTreeExamples.cpp.ASTMyOtherID.cc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javacc Show documentation
Show all versions of javacc Show documentation
JavaCC is a parser/scanner generator for Java.
/*
* 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@ */