xo-expression: initial commit (constant + primitive)

This commit is contained in:
Roland Conybeare 2024-06-13 15:20:36 -04:00
commit 2d94fd51bf
17 changed files with 544 additions and 0 deletions

View file

@ -0,0 +1,14 @@
# expression/CMakeLists.txt
set(SELF_LIB xo_expression)
set(SELF_SRCS
Expression.cpp
#init_reflect.cpp
)
xo_add_shared_library4(${SELF_LIB} ${PROJECT_NAME}Targets ${PROJECT_VERSION} 1 ${SELF_SRCS})
xo_dependency(${SELF_LIB} reflect)
#xo_dependency(${SELF_LIB} indentlog)
#xo_dependency(${SELF_LIB} subsys)
# end CMakeLists.txt

View file

@ -0,0 +1,15 @@
/* @file Expression.cpp */
#include "Expression.hpp"
namespace xo {
namespace ast {
std::string
Expression::display_string() const {
return tostr(*this);
}
} /*namespace ast*/
} /*namespace xo*/
/* end Expression.cpp */