Open LonelyCat124 opened 2 years ago
Many backends share various base functionality, which is just copied and pasted between classes, e.g. add_include.
add_include
I think this should be moved into the base backend class, and the inherited classes should then implement the classes they need.
For example this could be backend then c_backend, c++_backend, fortran_backend ... backend classes.
backend
c_backend
c++_backend
fortran_backend
Many backends share various base functionality, which is just copied and pasted between classes, e.g.
add_include
.I think this should be moved into the base backend class, and the inherited classes should then implement the classes they need.
For example this could be
backend
thenc_backend
,c++_backend
,fortran_backend
... backend classes.