[#script-Expr]
= xref:script.adoc[script]::Expr
:relfileprefix: ../
:mrdocs:

Extract the expression that sp begins with&period;

== Synopsis

Declared in `&lt;script&sol;parsing&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::span&lt;char const&gt;
Expr(std::span&lt;char const&gt;& sp);
----

== Description

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&period; So for example, for &quot;foo(bar(1),2),3&quot; the initial part &quot;foo(bar(1),2)&quot; will be returned&period; sp will be updated to skip the initial part that is returned&period;

== Return Value

The leading expression of sp&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sp*
| The input span&semi; it is advanced past the returned expression&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
