aboutsummaryrefslogtreecommitdiff
path: root/src/parser/parse_element.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/parse_element.h')
-rw-r--r--src/parser/parse_element.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/parser/parse_element.h b/src/parser/parse_element.h
index 58ad694..ebd08ab 100644
--- a/src/parser/parse_element.h
+++ b/src/parser/parse_element.h
@@ -40,11 +40,12 @@ using std::unique_ptr;
virtual ParseElement *clone() const \
{ return new ELEM_NAME(*this); } \
/* Implement virtual function create(...) to construct element */ \
- virtual sc_module *create(ParseTreeCreationHelper &pt_helper) const; \
+ virtual sc_module *create(ParseTreeCreationHelper &pt_helper) const; \
virtual element_type_base * \
- instantiate_and_connect_uni(ParseTreeCreationHelper &pt_helper) const; \
+ instantiate_and_connect_uni(ParseTreeCreationHelper &pt_helper) const; \
\
virtual string kind() const { return ELEM_NAME_LONG; } \
+ virtual bool bidir_capable() const { return false; } \
};
/*************************************************/
@@ -64,13 +65,14 @@ using std::unique_ptr;
virtual ParseElement *clone() const \
{ return new ELEM_NAME(*this); } \
/* Implement virtual function create(...) to construct element */ \
- virtual sc_module *create(ParseTreeCreationHelper &pt_helper) const; \
+ virtual sc_module *create(ParseTreeCreationHelper &pt_helper) const; \
virtual element_type_base * \
- instantiate_and_connect_uni(ParseTreeCreationHelper &pt_helper) const; \
+ instantiate_and_connect_uni(ParseTreeCreationHelper &pt_helper) const; \
virtual element_type_base * \
- instantiate_and_connect_bi(ParseTreeCreationHelper &pt_helper) const; \
+ instantiate_and_connect_bi(ParseTreeCreationHelper &pt_helper) const; \
\
virtual string kind() const { return string(ELEM_NAME_LONG) + " (bidir)"; } \
+ virtual bool bidir_capable() const { return true; } \
};
/** ******************************************* **/