mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-23 04:15:31 +00:00
Fix token problem in AST
This commit is contained in:
parent
ae400aa218
commit
80f822ac59
2
peglib.h
2
peglib.h
@ -2489,7 +2489,7 @@ public:
|
|||||||
auto line = line_info(sv.ss, sv.c_str());
|
auto line = line_info(sv.ss, sv.c_str());
|
||||||
|
|
||||||
if (is_token) {
|
if (is_token) {
|
||||||
return std::make_shared<T>(sv.path, line.first, line.second, name.c_str(), sv.str());
|
return std::make_shared<T>(sv.path, line.first, line.second, name.c_str(), sv.token());
|
||||||
}
|
}
|
||||||
|
|
||||||
auto ast = std::make_shared<T>(sv.path, line.first, line.second, name.c_str(), sv.transform<std::shared_ptr<T>>());
|
auto ast = std::make_shared<T>(sv.path, line.first, line.second, name.c_str(), sv.transform<std::shared_ptr<T>>());
|
||||||
|
Loading…
Reference in New Issue
Block a user