mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Corrected README.
This commit is contained in:
parent
20c303d6e9
commit
c7f0932917
@ -84,8 +84,8 @@ Here are available actions:
|
|||||||
|
|
||||||
```c++
|
```c++
|
||||||
struct SemanticValue {
|
struct SemanticValue {
|
||||||
peglib::any val; // Semantic value
|
any val; // Semantic value
|
||||||
std::string name; // Definition name for the sematic value
|
const char* name; // Definition name for the sematic value
|
||||||
const char* s; // Token start for the semantic value
|
const char* s; // Token start for the semantic value
|
||||||
size_t n; // Token length for the semantic value
|
size_t n; // Token length for the semantic value
|
||||||
|
|
||||||
@ -104,8 +104,7 @@ struct SemanticValues : protected std::vector<SemanticValue>
|
|||||||
std::string str() const;
|
std::string str() const;
|
||||||
|
|
||||||
// Transform the semantice value vector to another vector
|
// Transform the semantice value vector to another vector
|
||||||
template <typename T>
|
template <typename T> vector<T> transform(size_t beg = 0, size_t end = -1) const;
|
||||||
vector<T> transform(size_t beg = 0, size_t end = -1) const;
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user