From 814473f4d62836bcc1f0d95096ac4afc40c1aa5d Mon Sep 17 00:00:00 2001 From: Pepe Rivera Date: Tue, 3 Mar 2020 10:53:03 -0800 Subject: [PATCH] Parse each individual equation (#1059) --- src/GraphControl/Control/Grapher.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/GraphControl/Control/Grapher.cpp b/src/GraphControl/Control/Grapher.cpp index fd38ef5..6cdccf9 100644 --- a/src/GraphControl/Control/Grapher.cpp +++ b/src/GraphControl/Control/Grapher.cpp @@ -289,6 +289,17 @@ namespace GraphControl co_return false; } + unique_ptr 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; }