javacc-7.0.3.examples.JJTreeExamples.cpp.ASTMyID.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.
/*
* ASTMyID.cpp
*
* Created on: 28 mars 2014
* Author: FrancisANDRE
*/
#include "ASTMyID.h"
namespace @NAMESPACE@ {
ASTMyID::ASTMyID(int i) : SimpleNode(i) {
}
ASTMyID::ASTMyID(Parser *p, int id) : SimpleNode(p, id){
}
void
ASTMyID::setName(JAVACC_STRING_TYPE image) {
name = image;
}
ASTMyID::~ASTMyID() {
}
JAVACC_STRING_TYPE ASTMyID::toString() const {
return "Identifier: " + name;
}
} /* namespace @NAMESPACE@ */