You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/Inputs-and-Parsing.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -312,7 +312,7 @@ Nested parsing refers to an (inner) parsing run that is performed "in the middle
312
312
The difference to the regular `tao::pegtl::parse()` function is that `tao::pegtl::parse_nested()` takes care of adding to the `std::vector` of `tao::pegtl::position` objects in the exception class `tao::pegtl::parse_error`.
313
313
This allows generating error messages of the form "error in file F1 line L1 included from file F2 line L2...".
314
314
315
-
Calling `parse_nested()` requires one additional argument compared to `parse()`, the input from the outer parsing run as first argument.
315
+
Compared to `parse()`, calling `parse_nested()` requires either the input from the outer parsing run or the position as additional first argument.
0 commit comments