Skip to content

Commit

Permalink
Generator: extracted the code that generates the code to compute the …
Browse files Browse the repository at this point in the history
…model.

So that we can reuse them for the interpreter later on.
  • Loading branch information
agarny committed Apr 10, 2024
1 parent d93b7d8 commit 00e5880
Show file tree
Hide file tree
Showing 7 changed files with 1,565 additions and 1,511 deletions.
2 changes: 1 addition & 1 deletion src/analyser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ limitations under the License.
#include "analyservariable_p.h"
#include "anycellmlelement_p.h"
#include "commonutils.h"
#include "generator_p.h"
#include "generatorinterpreter_p.h"
#include "issue_p.h"
#include "logger_p.h"
#include "utilities.h"
Expand Down
4 changes: 2 additions & 2 deletions src/api/libcellml/generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ class LIBCELLML_EXPORT Generator
* Return the equation code for the given @ref AnalyserEquationAst using @ref GeneratorProfile.
*
* @param ast The @ref AnalyserEquationAst for which we want to generate some code.
* @param generatorProfile The @ref GeneratorProfile, if any, to use to generate the equation code. If no
* @param profile The @ref GeneratorProfile, if any, to use to generate the equation code. If no
* @ref GeneratorProfile is provided then the default @ref GeneratorProfile is used.
*
* @return The equation code as a @c std::string.
*/
static std::string equationCode(const AnalyserEquationAstPtr &ast,
const GeneratorProfilePtr &generatorProfile);
const GeneratorProfilePtr &profile);

/**
* @brief Get the equation code for the given @ref AnalyserEquationAst using a default @ref GeneratorProfile.
Expand Down
Loading

0 comments on commit 00e5880

Please sign in to comment.