Renamed class name.

pull/3/head
yhirose 9 years ago
parent 7583711c63
commit be60c69729
  1. 12
      peglib.h

@ -1003,7 +1003,7 @@ struct Ope::Visitor
virtual void visit(DefinitionReference& ope) = 0; virtual void visit(DefinitionReference& ope) = 0;
}; };
struct DefinitionIDs : public Ope::Visitor struct AssignIDToDefinition : public Ope::Visitor
{ {
void visit(Sequence& ope) override { void visit(Sequence& ope) override {
for (auto op: ope.opes_) { for (auto op: ope.opes_) {
@ -1210,12 +1210,12 @@ private:
Definition& operator=(Definition&& rhs); Definition& operator=(Definition&& rhs);
Result parse_core(const char* s, size_t n, SemanticValues& sv, any& dt) const { Result parse_core(const char* s, size_t n, SemanticValues& sv, any& dt) const {
DefinitionIDs defIds; AssignIDToDefinition assignId;
holder_->accept(defIds); holder_->accept(assignId);
Context c(s, n, defIds.ids.size(), enablePackratParsing); Context cxt(s, n, assignId.ids.size(, enablePackratParsing);
auto len = holder_->parse(s, n, sv, c, dt); auto len = holder_->parse(s, n, sv, cxt, dt);
return Result{ success(len), len, c.error_pos, c.message_pos, c.message }; return Result{ success(len), len, cxt.error_pos, cxt.message_pos, cxt.message };
} }
std::shared_ptr<Holder> holder_; std::shared_ptr<Holder> holder_;

Loading…
Cancel
Save