mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2025-01-22 21:35:29 +00:00
Removed unused parameter.
This commit is contained in:
parent
1f48b4ca82
commit
9546860a77
8
peglib.h
8
peglib.h
@ -1,4 +1,4 @@
|
|||||||
//
|
//
|
||||||
// peglib.h
|
// peglib.h
|
||||||
//
|
//
|
||||||
// Copyright (c) 2015 Yuji Hirose. All rights reserved.
|
// Copyright (c) 2015 Yuji Hirose. All rights reserved.
|
||||||
@ -477,7 +477,7 @@ struct Context
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
void packrat(const char* s, size_t def_id, int& len, any& val, T fn) {
|
void packrat(const char* s, size_t def_id, int& len, any& val, T fn) {
|
||||||
if (cache_register.empty()) {
|
if (cache_register.empty()) {
|
||||||
fn(len, val);
|
fn(val);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -494,7 +494,7 @@ struct Context
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fn(len, val);
|
fn(val);
|
||||||
cache_register[def_count * col + def_id] = true;
|
cache_register[def_count * col + def_id] = true;
|
||||||
cache_success[def_count * col + def_id] = success(len);
|
cache_success[def_count * col + def_id] = success(len);
|
||||||
if (success(len)) {
|
if (success(len)) {
|
||||||
@ -1226,7 +1226,7 @@ inline int Holder::parse(const char* s, size_t n, SemanticValues& sv, Context& c
|
|||||||
const char* ancs = s;
|
const char* ancs = s;
|
||||||
size_t ancn = n;
|
size_t ancn = n;
|
||||||
|
|
||||||
c.packrat(s, outer_->id, len, val, [&](int& len, any& val) {
|
c.packrat(s, outer_->id, len, val, [&](any& val) {
|
||||||
auto& chldsv = c.push();
|
auto& chldsv = c.push();
|
||||||
|
|
||||||
const auto& rule = *ope_;
|
const auto& rule = *ope_;
|
||||||
|
Loading…
Reference in New Issue
Block a user