mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-20 21:33:10 -07:00
Parse each individual equation (#1059)
This commit is contained in:
parent
dbc3dc5abb
commit
814473f4d6
1 changed files with 11 additions and 0 deletions
|
@ -289,6 +289,17 @@ namespace GraphControl
|
|||
co_return false;
|
||||
}
|
||||
|
||||
unique_ptr<IExpression> expr;
|
||||
wstring parsableEquation = s_getGraphOpeningTags;
|
||||
parsableEquation += equationRequest;
|
||||
parsableEquation += s_getGraphClosingTags;
|
||||
|
||||
// Wire up the corresponding error to an error message in the UI at some point
|
||||
if (!(expr = m_solver->ParseInput(parsableEquation)))
|
||||
{
|
||||
co_return false;
|
||||
}
|
||||
|
||||
request += equationRequest;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue