From dce50596f5b740dc4306da3aa0e5e91eb6fffd10 Mon Sep 17 00:00:00 2001 From: yhirose Date: Mon, 8 Mar 2021 11:54:46 -0500 Subject: [PATCH] Resolve #153 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 65e341c..12d98a2 100644 --- a/README.md +++ b/README.md @@ -420,6 +420,8 @@ AST generation *cpp-peglib* is able to generate an AST (Abstract Syntax Tree) when parsing. `enable_ast` method on `peg::parser` class enables the feature. +NOTE: An AST node holds a corresponding token as `std::string_vew` for performance and less memory usage. It is users' responsibility to kepp the original source text along with the generated AST tree. + ``` peg::parser parser(R"( ...