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

javacc-7.0.3.examples.JJTreeExamples.cpp.eg4.ParserVisitor.h Maven / Gradle / Ivy

There is a newer version: 7.0.13
Show newest version
/* Generated By:JavaCC: Do not edit this line. ParserVisitor.h Version 7.0.3 */
#ifndef PARSERVISITOR_H
#define PARSERVISITOR_H

#include "JavaCC.h"
#include "ParserTree.h"
namespace EG4 {
class ParserVisitor
{
  public:
  virtual void* visit(const SimpleNode *node, void* data) = 0;
  virtual void* visit(const ASTStart *node, void* data) = 0;
  virtual void* visit(const ASTAdd *node, void* data) = 0;
  virtual void* visit(const ASTMult *node, void* data) = 0;
  virtual void* visit(const ASTMyOtherID *node, void* data) = 0;
  virtual void* visit(const ASTInteger *node, void* data) = 0;
  virtual ~ParserVisitor() { }
};
class ParserDefaultVisitor : public ParserVisitor {
public:
  virtual void* defaultVisit(const SimpleNode *node, void* data) = 0;
  virtual void* visit(const SimpleNode *node, void* data) {
    return defaultVisit(node, data);
}
  virtual void* visit(const ASTStart *node, void* data) {
    return defaultVisit(node, data);
  }
  virtual void* visit(const ASTAdd *node, void* data) {
    return defaultVisit(node, data);
  }
  virtual void* visit(const ASTMult *node, void* data) {
    return defaultVisit(node, data);
  }
  virtual void* visit(const ASTMyOtherID *node, void* data) {
    return defaultVisit(node, data);
  }
  virtual void* visit(const ASTInteger *node, void* data) {
    return defaultVisit(node, data);
  }
  ~ParserDefaultVisitor() { }
};
}
#endif
/* JavaCC - OriginalChecksum=d69fb6fdb411f39c70e472aa78c86f08 (do not edit this line) */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy