javacc-6.1.2.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 is a parser/scanner generator for Java.
#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) { }
};
} }