mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Updated documentation.
This commit is contained in:
parent
895414a234
commit
16a61f2cf8
@ -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
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user