xo-expression: initial commit (constant + primitive)
This commit is contained in:
commit
2d94fd51bf
17 changed files with 544 additions and 0 deletions
14
src/expression/CMakeLists.txt
Normal file
14
src/expression/CMakeLists.txt
Normal 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
|
||||
15
src/expression/Expression.cpp
Normal file
15
src/expression/Expression.cpp
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue