![Logo](logo.png) |
User Guide
|
Go to the documentation of this file.
21 const auto& bin_exp = std::static_pointer_cast<ast::BinaryExpression>(node.
get_expression());
22 auto lhs = bin_exp->get_lhs();
23 auto rhs = bin_exp->get_rhs();
std::string get_indexed_name()
get the attribute indexed_name
std::string get_indexed_name(const ast::IndexedName &node)
Given a Indexed node, return the name with index.
void visit_indexed_name(ast::IndexedName &node) override
Get node name with index for the IndexedName node.
Represents differential equation in DERIVATIVE block.
encapsulates code generation backend implementations
void visit_program(ast::Program &node) override
visit node of type ast::Program
std::pair< std::string, std::unordered_set< std::string > > statement_dependencies(const std::shared_ptr< ast::Expression > &lhs, const std::shared_ptr< ast::Expression > &rhs)
If lhs and rhs combined represent an assignment (we assume to have an "=" in between them) we extract...
Auto generated AST classes declaration.
Utility functions for visitors implementation.
Represents specific element of an array variable.
std::pair< std::string, std::unordered_set< std::string > > get_dependencies()
get the attribute dependencies
void visit_children(visitor::Visitor &v) override
visit children i.e.
void visit_children(visitor::Visitor &v) override
visit children i.e.
std::shared_ptr< BinaryExpression > get_expression() const noexcept
Getter for member variable DiffEqExpression::expression.
std::pair< std::string, std::unordered_set< std::string > > dependencies
Represents top level AST node for whole NMODL input.
void visit_diff_eq_expression(ast::DiffEqExpression &node) override
Get dependencies for the DiffEqExpression node.
Get node name with indexed for the IndexedName node and the dependencies of DiffEqExpression node.