Extract the expression that sp begins with.
Declared in <script/parsing.h>
std::span<char const>
Expr(std::span<char const>& sp);
This function will return the initial part of sp, up to (but not including) the first comma or closing brace, skipping ones that are surrounded by braces. So for example, for "foo(bar(1),2),3" the initial part "foo(bar(1),2)" will be returned. sp will be updated to skip the initial part that is returned.
The leading expression of sp.
| Name | Description |
|---|---|
| sp | The input span; it is advanced past the returned expression. |