mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Changed to use lit("")
for empty exp instead of npd(dot())
This commit is contained in:
parent
9ad70096c8
commit
990dac98cf
BIN
docs/native.wasm
BIN
docs/native.wasm
Binary file not shown.
2
peglib.h
2
peglib.h
@ -2873,7 +2873,7 @@ private:
|
|||||||
|
|
||||||
g["Sequence"] = [&](const SemanticValues &vs) {
|
g["Sequence"] = [&](const SemanticValues &vs) {
|
||||||
if (vs.empty()) {
|
if (vs.empty()) {
|
||||||
return npd(dot());
|
return lit("");
|
||||||
} else if (vs.size() == 1) {
|
} else if (vs.size() == 1) {
|
||||||
return std::any_cast<std::shared_ptr<Ope>>(vs[0]);
|
return std::any_cast<std::shared_ptr<Ope>>(vs[0]);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user