1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
#include "stdafx.h"
#include "ParserBackend.h"
#include "Exception.h"
namespace storm {
namespace syntax {
ParserBackend::ParserBackend() {}
void ParserBackend::add(Rule *r) {}
void ParserBackend::add(ProductionType *p) {}
Bool ParserBackend::sameSyntax(ParserBackend *o) {
return true;
}
Bool ParserBackend::parse(Rule *root, Str *str, Url *file, Str::Iter start, Str::Iter end) {
return false;
}
InfoErrors ParserBackend::parseApprox(Rule *root, Str *str, Url *file,
Str::Iter start, Str::Iter end, MAYBE(InfoInternal *) ctx) {
return infoFailure();
}
void ParserBackend::clear() {}
Bool ParserBackend::hasError() const {
return false;
}
Bool ParserBackend::hasTree() const {
return false;
}
Str::Iter ParserBackend::matchEnd() const {
return Str::Iter();
}
Str *ParserBackend::errorMsg() const {
return new (this) Str(L"no error");
}
SrcPos ParserBackend::errorPos() const {
return SrcPos();
}
Node *ParserBackend::tree() const {
throw new (this) InternalError(S("No tree."));
}
InfoNode *ParserBackend::infoTree() const {
throw new (this) InternalError(S("No tree."));
}
Nat ParserBackend::stateCount() const {
return 0;
}
Nat ParserBackend::byteCount() const {
return 0;
}
}
}
|