Updated documentation.

This commit is contained in:
yhirose 2015-02-21 23:23:59 -05:00
parent 895414a234
commit 16a61f2cf8
2 changed files with 3 additions and 4 deletions

View File

@ -278,7 +278,8 @@ Sample codes
------------
* [Calculator](https://github.com/yhirose/cpp-peglib/blob/master/example/calc.cc)
* [Calculator with parser operators](https://github.com/yhirose/cpp-peglib/blob/master/example/calc2.cc)
* [Calculator (with parser operators)](https://github.com/yhirose/cpp-peglib/blob/master/example/calc2.cc)
* [Calculator (AST version)](https://github.com/yhirose/cpp-peglib/blob/master/example/calc3.cc)
* [PEG syntax Lint utility](https://github.com/yhirose/cpp-peglib/blob/master/lint/peglint.cc)
Tested Compilers

View File

@ -47,9 +47,7 @@ struct ast_ope : public ast_node
};
static shared_ptr<ast_node> create(const SemanticValues& sv) {
if (sv.empty()) {
return nullptr;
}
assert(!sv.empty());
return SemanticValues::reduce(
sv.begin() + 1,
sv.end(),