xo-expression: + Lambda (function definitions)
This commit is contained in:
parent
d6371ee369
commit
20b23b50fc
4 changed files with 67 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ set(SELF_LIB xo_expression)
|
|||
set(SELF_SRCS
|
||||
Expression.cpp
|
||||
Apply.cpp
|
||||
Lambda.cpp
|
||||
#init_reflect.cpp
|
||||
)
|
||||
|
||||
|
|
|
|||
19
src/expression/Lambda.cpp
Normal file
19
src/expression/Lambda.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/* @file Lambda.cpp */
|
||||
|
||||
#include "Lambda.hpp"
|
||||
#include "xo/indentlog/print/vector.hpp"
|
||||
|
||||
namespace xo {
|
||||
namespace ast {
|
||||
void
|
||||
Lambda::display(std::ostream & os) const {
|
||||
os << "<Lambda"
|
||||
<< xtag("argv", argv_)
|
||||
<< xtag("body", body_)
|
||||
<< ">";
|
||||
} /*display*/
|
||||
} /*namespace ast*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
||||
/* end Lambda.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue