javacc-7.0.4.examples.JavaGrammars.cpp.myparser.h 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 modified by Tencent blueking.
The newest version!
#include "gen/ErrorHandler.h"
#include "gen/Token.h"
#include "gen/JavaParser.h"
namespace java { namespace parser {
class MyParser {
};
class MyErrorHandler: public ErrorHandler {
virtual void handleUnexpectedToken(int expectedKind, JAVACC_STRING_TYPE expectedToken, Token *actual, JavaParser *parser) { }
virtual void handleParseError(Token *last, Token *unexpected, JAVACC_SIMPLE_STRING production, JavaParser *parser) { }
};
} }